@@ -9,6 +9,8 @@ NLogViewer.MaterialDesign extends the base NLogViewer control with Material Desi
99- Beautiful log level icons and color coding
1010- Responsive layout with Material Design cards
1111- Consistent theming with Material Design principles
12+ - Enhanced search functionality with Material Design chips
13+ - Improved column headers with reduced height and separators
1214
1315## Installation
1416
@@ -58,3 +60,89 @@ In your `App.xaml`, add the Material Design theme and NLogViewer Material Design
5860 </Application .Resources>
5961</Application >
6062```
63+
64+ ### 3. Use the Control
65+
66+ Add the namespace and use the control in your XAML:
67+
68+ ``` xaml
69+ <Window x : Class =" YourApp.MainWindow"
70+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
71+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
72+ xmlns : dj =" clr-namespace:DJ;assembly=NLogViewer" >
73+ <Grid >
74+ <dj : NLogViewer />
75+ </Grid >
76+ </Window >
77+ ```
78+
79+ ## Features
80+
81+ ### Material Design Styling
82+ - ** Cards** : Log entries are displayed in Material Design cards
83+ - ** Icons** : Log levels are represented with Material Design icons
84+ - ** Colors** : Consistent color scheme following Material Design guidelines
85+ - ** Typography** : Material Design typography
86+
87+ ### Search Interface
88+ - ** Search Chips** : Search terms are displayed as Material Design chips
89+ - ** Regex Indicators** : Regex search terms are prefixed with "/" for identification
90+ - ** Context Menus** : Right-click search chips for edit/remove options
91+ - ** Search Highlighting** : Matched text is highlighted with Material Design colors
92+
93+ ### Layout
94+ - ** Reduced Header Height** : Column headers have a reduced height (32px)
95+ - ** Column Separators** : Visual separators between columns
96+ - ** Responsive Design** : Layout adapts to different screen sizes
97+
98+ ### Theme Integration
99+ - ** Color Binding** : Search term chips bind to NLogViewer color dependency properties
100+ - ** Consistent Styling** : All UI elements follow Material Design principles
101+ - ** Dark/Light Theme Support** : Compatible with Material Design theme switching
102+
103+ ## Customization
104+
105+ ### Color Customization
106+ You can customize the appearance by binding to NLogViewer's color properties:
107+
108+ ``` xaml
109+ <dj : NLogViewer
110+ TraceBackground =" {DynamicResource MaterialDesignChipBackground}"
111+ DebugBackground =" {DynamicResource MaterialDesignChipBackground}"
112+ InfoBackground =" {DynamicResource MaterialDesignChipBackground}"
113+ WarnBackground =" {DynamicResource MaterialDesignChipBackground}"
114+ ErrorBackground =" {DynamicResource MaterialDesignChipBackground}"
115+ FatalBackground =" {DynamicResource MaterialDesignChipBackground}"
116+ SearchHighlightBackground =" {DynamicResource MaterialDesignSelection}"
117+ ShowControlButtons =" True"
118+ ShowFilterButtons =" True" />
119+ ```
120+
121+ ### Search Functionality
122+ The Material Design theme provides enhanced search experience:
123+
124+ ``` csharp
125+ // Enable regex search mode
126+ nLogViewer .UseRegexSearch = true ;
127+
128+ // Add search terms programmatically
129+ nLogViewer .CurrentSearchText = " error" ;
130+ nLogViewer .AddSearchTerm ();
131+
132+ // Customize search highlight color
133+ nLogViewer .SearchHighlightBackground = new SolidColorBrush (Colors .Yellow );
134+ ```
135+
136+ ## Test Applications
137+
138+ This package includes test applications:
139+
140+ - ** NLogViewer.MaterialDesign.TestApp** - Standalone test application
141+ - ** NLogViewer.TestApp** - Base test application for comparison
142+
143+ ## Requirements
144+
145+ - .NET 8.0 or higher
146+ - MaterialDesignThemes 4.9.0 or higher
147+ - NLogViewer base control
148+
0 commit comments