diff --git a/sample/Atc.Wpf.Sample/SamplesWpfControls/Monitoring/ApplicationMonitorView.xaml.cs b/sample/Atc.Wpf.Sample/SamplesWpfControls/Monitoring/ApplicationMonitorView.xaml.cs
index 2e223b25..b59c83c0 100644
--- a/sample/Atc.Wpf.Sample/SamplesWpfControls/Monitoring/ApplicationMonitorView.xaml.cs
+++ b/sample/Atc.Wpf.Sample/SamplesWpfControls/Monitoring/ApplicationMonitorView.xaml.cs
@@ -9,7 +9,10 @@ public ApplicationMonitorView()
InitializeComponent();
DataContext = this;
- ApplicationMonitorViewModel = new ApplicationMonitorViewModel();
+ ApplicationMonitorViewModel = new ApplicationMonitorViewModel
+ {
+ ShowColumnArea = true,
+ };
dispatcherTimer = new DispatcherTimer
{
diff --git a/src/Atc.Wpf.Controls/Monitoring/ApplicationMonitorView.xaml b/src/Atc.Wpf.Controls/Monitoring/ApplicationMonitorView.xaml
index 4dd54cd2..fe334fea 100644
--- a/src/Atc.Wpf.Controls/Monitoring/ApplicationMonitorView.xaml
+++ b/src/Atc.Wpf.Controls/Monitoring/ApplicationMonitorView.xaml
@@ -15,6 +15,7 @@
mc:Ignorable="d">
+
@@ -118,6 +119,18 @@
+
+
+
+
+
+
+
+
Entries { get; }
+ public bool ShowColumnArea
+ {
+ get => showColumnArea;
+ set
+ {
+ if (value == showColumnArea)
+ {
+ return;
+ }
+
+ showColumnArea = value;
+ RaisePropertyChanged();
+ }
+ }
+
public ListSortDirection SortDirection
{
get => sortDirection;
@@ -226,6 +242,13 @@ LogCategoryType.Error or
return false;
}
+ if (ShowColumnArea)
+ {
+ return string.IsNullOrEmpty(filter.MatchOnTextInData) ||
+ entry.Area.Contains(filter.MatchOnTextInData, StringComparison.OrdinalIgnoreCase) ||
+ entry.Message.Contains(filter.MatchOnTextInData, StringComparison.OrdinalIgnoreCase);
+ }
+
return string.IsNullOrEmpty(filter.MatchOnTextInData) ||
entry.Message.Contains(filter.MatchOnTextInData, StringComparison.OrdinalIgnoreCase);
};
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs b/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
index 52955686..c77f062d 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.Designer.cs
@@ -69,6 +69,15 @@ public static string ApplicationSettings {
}
}
+ ///
+ /// Looks up a localized string similar to Area.
+ ///
+ public static string Area {
+ get {
+ return ResourceManager.GetString("Area", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Auto.
///
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
index 14c4a863..f95ced9d 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.da-DK.resx
@@ -120,6 +120,9 @@
Applikationsindstillinger
+
+ Område
+
Auto
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
index 6a6dd500..d7a601a5 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.de-DE.resx
@@ -120,6 +120,9 @@
Anwendungseinstellungen
+
+ Bereich
+
Auto
diff --git a/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx b/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
index ccdb11c4..15c89a71 100644
--- a/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
+++ b/src/Atc.Wpf.Controls/Resources/Miscellaneous.resx
@@ -120,6 +120,9 @@
Application Settings
+
+ Area
+
Auto