-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathWindow1.xaml
442 lines (430 loc) · 24.8 KB
/
Window1.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:LogViewer"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
mc:Ignorable="d" x:Class="LogViewer.Window1"
Title="LogViewer" Height="800" Width="800"
SizeToContent="Manual"
ResizeMode="CanResizeWithGrip"
AllowDrop="True"
Background="{DynamicResource WindowBackgroundBrush}"
DataContext="{Binding RelativeSource={RelativeSource Self}}" Closed="window_Closed" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Window.Resources>
<Color x:Key="LabelColor">#FFC3C9E9</Color>
</Window.Resources>
<Window.CommandBindings>
<CommandBinding Command="ApplicationCommands.Open" CanExecute="openCanExecute" Executed="openExecuted"/>
<CommandBinding Command="ApplicationCommands.Close" CanExecute="exitCanExecute" Executed="exitExecuted" />
<CommandBinding Command="NavigationCommands.Refresh" CanExecute="refreshCanExecute" Executed="refreshExecuted" />
<CommandBinding Command="NavigationCommands.Search" CanExecute="filterCanExexute" Executed="filterExecuted" />
<CommandBinding Command="ApplicationCommands.Help" CanExecute="aboutCanExecute" Executed="aboutExecuted" />
</Window.CommandBindings>
<DockPanel >
<Grid DockPanel.Dock="Top">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid x:Name="gridMenu" Grid.Row="0" Margin="0,1,0,-1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Menu Grid.Column="0" x:Name="menu1">
<MenuItem Header="_File" Foreground="White" >
<MenuItem Header="_Open" Command="ApplicationCommands.Open" />
<MenuItem Header="_Recent Files" >
<local:RecentFileList x:Name="RecentFileList" />
</MenuItem>
<MenuItem Header="E_xit" Command="ApplicationCommands.Close" />
<MenuItem x:Name="MenuMergeItem" Header="_Merge File" Click="mergeFile_Click" IsEnabled="{Binding CanMerge}"/>
<Separator />
<MenuItem x:Name="ResetSeparator" Header="_Reset separator" Click="resetSeparator_Click" />
</MenuItem>
<MenuItem Header="_Refresh" Foreground="White" Command="NavigationCommands.Refresh" />
<MenuItem Header="F_ilter" Foreground="White" Command="NavigationCommands.Search" />
<MenuItem Header="_About" Foreground="White" Command="ApplicationCommands.Help" />
</Menu>
</Grid>
<Grid x:Name="gridTopBar" Grid.Row="1" Height="32">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid x:Name="spPath" Grid.Column="0" Margin="9,0,6,0" d:LayoutOverrides="Width">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock
Text="Path:" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
<TextBlock x:Name="textboxFileName"
Foreground="Orange"
Background="Transparent"
VerticalAlignment="Center"
TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Grid.Column="1"/>
</Grid>
<StackPanel x:Name="spCountAndSearch" Orientation="Horizontal" d:LayoutOverrides="Width" Margin="5.396,0,6,0" VerticalAlignment="Center" Grid.Column="1">
<StackPanel x:Name="spGlobalInfo" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,6,0" >
<local:FilterActivity x:Name="FilterIndicator" Width="19" Height="19" Margin="0,0,3,0" ToolTip="Filter state : blue = not filtered" MouseLeftButtonDown="filterIndicator_MouseLeftButtonDown" Background="Transparent" />
<TextBlock x:Name="tbFiltered" TextWrapping="Wrap" Text="?" Foreground="#FFE7670D" Margin="0,0,3,0" VerticalAlignment="Center" ToolTip="# lines displayed [/total]" MouseLeftButtonDown="filterIndicator_MouseLeftButtonDown" />
</StackPanel>
<StackPanel x:Name="spCounters" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,6,0" >
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<Image x:Name="imageError" Height="16" Width="16" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="imageError_MouseLeftButtonDown" />
<TextBlock x:Name="labelErrorCount" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="3,0,0,0" >
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
</StackPanel>
<StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center">
<Image x:Name="imageWarn" Height="16" Width="16" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="imageWarn_MouseLeftButtonDown" />
<TextBlock x:Name="labelWarnCount" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="3,0,0,0">
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
</StackPanel>
<StackPanel Grid.Column="4" Orientation="Horizontal" VerticalAlignment="Center">
<Image x:Name="imageDebug" Height="16" Width="16" Visibility="Hidden" HorizontalAlignment="Center" VerticalAlignment="Center" MouseLeftButtonDown="imageDebug_MouseLeftButtonDown" />
<TextBlock x:Name="labelDebugCount" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="3,0,0,0">
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
<Image x:Name="imageInfo" Height="16" Width="16" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" MouseLeftButtonDown="imageInfo_MouseLeftButtonDown" />
<TextBlock x:Name="labelInfoCount" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="3,0,0,0">
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
</StackPanel>
</StackPanel>
<StackPanel x:Name="spFind" Orientation="Horizontal" VerticalAlignment="Center">
<Image x:Name="image2" Source="/LogViewer;component/Resources/Images/find.png" VerticalAlignment="Center" Width="12"/>
<TextBlock x:Name="label3" Text="Find:" VerticalAlignment="Center" Margin="3,0,0,0">
<TextBlock.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</TextBlock.Foreground>
</TextBlock>
<TextBox x:Name="textBoxFind" Width="120" VerticalAlignment="Center" AcceptsReturn="False" KeyDown="textBoxFind_KeyDown" Margin="3,0,0,0" PreviewKeyDown="textBoxFind_PreviewKeyDown" />
<Button x:Name="buttonFindNext" Click="buttonFindNext_Click" Cursor="Hand" VerticalAlignment="Center" Margin="5,0,0,0">
<Button.Template>
<ControlTemplate>
<ControlTemplate.Resources>
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.3"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.3"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="Storyboard2">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Image x:Name="image" Width="16" Height="16" ToolTip="Find Next" Source="/LogViewer;component/Resources/Images/arrow_right.png" RenderTransformOrigin="0.5,0.5" >
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.ExitActions>
<BeginStoryboard x:Name="Storyboard2_BeginStoryboard" Storyboard="{StaticResource Storyboard2}"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<Button x:Name="buttonFindPrevious" Click="buttonFindPrevious_Click" Cursor="Hand" VerticalAlignment="Center" Margin="5,0,0,0">
<Button.Template>
<ControlTemplate>
<ControlTemplate.Resources>
<Storyboard x:Key="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.3"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.3"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="Storyboard2">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="image">
<SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Image x:Name="image" Width="16" Height="16" ToolTip="Find Previous" Source="/LogViewer;component/Resources/Images/arrow_left.png" RenderTransformOrigin="0.5,0.5" >
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.ExitActions>
<BeginStoryboard x:Name="Storyboard2_BeginStoryboard" Storyboard="{StaticResource Storyboard2}"/>
</Trigger.ExitActions>
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
<StatusBar Height="23" DockPanel.Dock="Bottom" Foreground="#FFE9EEF0" >
<StatusBarItem Content="Ready"/>
</StatusBar>
<Grid x:Name="MainGrid">
<Grid.RowDefinitions>
<RowDefinition Height="150"/>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- List View -->
<Border BorderThickness="4,4,4,4" Margin="0" x:Name="borderTop" >
<ListView x:Name="listView1"
Grid.Row="0"
ItemsSource= "{Binding Entries, ElementName=Window1}"
AllowDrop="True"
SelectionChanged="listView1_SelectionChanged"
Drop="listView1_Drop" IsManipulationEnabled="True">
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Style.Triggers>
<DataTrigger Binding="{Binding Level}" Value="ERROR">
<Setter Property="Background" Value="Orange"/>
</DataTrigger>
<DataTrigger Binding="{Binding Level}" Value="INFO">
<Setter Property="Background" Value="Silver"/>
</DataTrigger>
<DataTrigger Binding="{Binding Level}" Value="DEBUG">
<Setter Property="Background" Value="LightSkyBlue"/>
</DataTrigger>
<DataTrigger Binding="{Binding Level}" Value="WARN">
<Setter Property="Background" Value="LightYellow"/>
</DataTrigger>
<DataTrigger Binding="{Binding Level}" Value="FATAL">
<Setter Property="Background" Value="Red"/>
</DataTrigger>
<DataTrigger Binding="{Binding Level}" Value="COMPRESSION">
<Setter Property="Background" Value="Gainsboro" />
</DataTrigger>
</Style.Triggers>
<Setter Property="Height" Value="20" />
<Setter Property="VerticalContentAlignment" Value="Top" />
</Style>
</ListView.ItemContainerStyle>
<ListView.View>
<GridView x:Name="GridView1">
<GridViewColumn Header="Item" DisplayMemberBinding="{Binding Item}" />
<GridViewColumn Header="TimeStamp" DisplayMemberBinding="{Binding TimeStamp, ConverterCulture=fr-FR, StringFormat=yyyy-MM-dd HH:mm:ss.fff}"/>
<GridViewColumn Header="">
<GridViewColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Image}" Width="16" Height="16" VerticalAlignment="Top" HorizontalAlignment="Left"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn DisplayMemberBinding="{Binding Level}" Header="Level" />
<GridViewColumn Header="NDC" DisplayMemberBinding="{Binding NDC}" />
<GridViewColumn Header="Identity" DisplayMemberBinding="{Binding Identity}" />
<GridViewColumn Header="Message" DisplayMemberBinding="{Binding Message}" />
<GridViewColumn Header="Thread" DisplayMemberBinding="{Binding Thread}" />
<GridViewColumn Header="MachineName" DisplayMemberBinding="{Binding MachineName}" />
<GridViewColumn Header="HostName" DisplayMemberBinding="{Binding HostName}" />
<GridViewColumn Header="UserName" DisplayMemberBinding="{Binding UserName}" />
<GridViewColumn Header="App" DisplayMemberBinding="{Binding App}" />
<GridViewColumn Header="Class" DisplayMemberBinding="{Binding Class}" />
</GridView>
</ListView.View>
</ListView>
</Border>
<GridSplitter x:Name="gridSplitter1" Grid.Row="1" Height="8" HorizontalAlignment="Stretch" ResizeDirection="Rows" >
<GridSplitter.Background>
<RadialGradientBrush>
<GradientStop Color="#FF4E4E4E" Offset="1"/>
<GradientStop Color="#FFB2B2B2"/>
</RadialGradientBrush>
</GridSplitter.Background>
</GridSplitter>
<Grid x:Name="bottomGrid" Margin="5,6,5,0" Grid.Row="2" >
<!-- Data Fields and Tab Control -->
<Grid Height="126" VerticalAlignment="Top" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"/>
<ColumnDefinition Width="17" />
<ColumnDefinition Width="32"/>
<ColumnDefinition Width="90*" />
<ColumnDefinition Width="81.482"/>
<ColumnDefinition Width="112*"/>
<ColumnDefinition Width="96.796"/>
<ColumnDefinition Width="95*"/>
<ColumnDefinition Width="58.69"/>
<ColumnDefinition Width="133*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10"/>
<RowDefinition Height="28"/>
<RowDefinition Height="28"/>
<RowDefinition Height="28"/>
<RowDefinition Height="28"/>
<RowDefinition Height="10"/>
</Grid.RowDefinitions>
<i:Interaction.Behaviors>
<ei:FluidMoveBehavior AppliesTo="Children" Duration="0:0:0.35">
<ei:FluidMoveBehavior.EaseY>
<CubicEase EasingMode="EaseOut"/>
</ei:FluidMoveBehavior.EaseY>
<ei:FluidMoveBehavior.EaseX>
<CubicEase EasingMode="EaseOut"/>
</ei:FluidMoveBehavior.EaseX>
</ei:FluidMoveBehavior>
</i:Interaction.Behaviors>
<!-- Row 1-->
<Image x:Name="image1" Width="16" Height="16" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,0" Grid.ColumnSpan="2" />
<TextBox x:Name="textBoxLevel" Grid.Column="2" Grid.Row="1" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center" Grid.ColumnSpan="2" />
<Label x:Name="label1" Grid.Column="4" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Time Stamp" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxTimeStamp" Grid.Column="5" Grid.Row="1" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center" />
<Label x:Name="label2" Grid.Column="6" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Machine Name" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxMachineName" Grid.Column="7" Grid.Row="1" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center" />
<Label x:Name="labelThread" Grid.Column="8" Grid.Row="1" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Thread" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxThread" Grid.Column="9" Grid.Row="1" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<!-- Row 2 -->
<Label x:Name="labelNDC" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,3" Content="NDC" VerticalAlignment="Center" Grid.ColumnSpan="2">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxNDC" Grid.Column="2" Grid.Row="2" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center" Grid.ColumnSpan="2" />
<Label x:Name="label4" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Host Name" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxHostName" Grid.Column="5" Grid.Row="2" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="label5" Grid.Column="6" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,3" Content="User Name" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxUserName" Grid.Column="7" Grid.Row="2" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="label6" Grid.Column="8" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,5,3" Content="App" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxApp" Grid.Column="9" Grid.Row="2" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<!-- Row 3-->
<Label x:Name="label7" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Class" VerticalAlignment="Center" Grid.ColumnSpan="2">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxClass" Grid.Column="2" Grid.Row="3" IsReadOnly="True" Margin="0,0,0,5" VerticalAlignment="Bottom" Grid.ColumnSpan="2" />
<Label x:Name="label8" Grid.Column="4" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Method" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxMethod" Grid.Column="5" Grid.Row="3" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="label10" Grid.Column="6" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Identity" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxIdentity" Grid.Column="7" Grid.Row="3" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="label6b" Grid.Column="8" Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Log File" VerticalAlignment="Center" MouseDoubleClick="label6b_MouseDoubleClick">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxLog" Grid.Column="9" Grid.Row="3" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<!-- Row 4-->
<Label x:Name="labelFile" Grid.Row="4" HorizontalAlignment="Right" Margin="0,0,5,3" Content="File" VerticalAlignment="Center" Grid.ColumnSpan="2">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxfile" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="4" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="label9" Grid.Column="4" Grid.Row="4" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Line" VerticalAlignment="Center">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxLine" Grid.Column="5" Grid.Row="4" IsReadOnly="True" Margin="0,0,0,4" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<Label x:Name="labelLogger" Grid.Column="6" Grid.Row="4" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Logger" VerticalAlignment="Center" Grid.ColumnSpan="1">
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxLogger" Grid.Column="7" Grid.ColumnSpan="1" Grid.Row="4" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center"/>
<Label x:Name="labelItem" Grid.Row="4" Grid.Column="8" HorizontalAlignment="Right" Margin="0,0,5,3" Content="Item" VerticalAlignment="Center" >
<Label.Foreground>
<SolidColorBrush Color="{DynamicResource LabelColor}"/>
</Label.Foreground>
</Label>
<TextBox x:Name="textBoxItem" Grid.Column="9" Grid.Row="4" IsReadOnly="True" Margin="0,0,0,4" VerticalAlignment="Center" />
</Grid>
<TabControl x:Name="tabControl1" Margin="0,130,0,0" HorizontalAlignment="Stretch" MinHeight="50">
<TabItem Header="Message">
<TextBox x:Name="textBoxMessage" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" BorderThickness="0" IsReadOnly="True" />
</TabItem>
<TabItem Header="Throwable">
<TextBox x:Name="textBoxThrowable" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" BorderThickness="0" IsReadOnly="True"/>
</TabItem>
</TabControl>
</Grid>
<!-- Data Fields and Tab Control -->
</Grid>
</DockPanel>
</Window>