forked from erizet/NlogViewer
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
53 lines (49 loc) · 2.93 KB
/
MainWindow.xaml
File metadata and controls
53 lines (49 loc) · 2.93 KB
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
<Window x:Class="SerilogViewerSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:serilogviewer ="clr-namespace:SerilogViewer;assembly=SerilogViewer"
xmlns:local="clr-namespace:SerilogViewerSample"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<GroupBox Grid.Row="0" Header="Send">
<StackPanel Orientation="Vertical">
<Label x:Name="lblLogText" Content="Text" />
<TextBox x:Name="tbLogText" Text="Sample text goes here...." HorizontalAlignment="Stretch" />
<StackPanel Orientation="Horizontal">
<Button x:Name="btnVerbose" Content="Verbose" Click="Send_Click" />
<Button x:Name="btnDebug" Content="Debug" Click="Send_Click" />
<Button x:Name="btnWarning" Content="Warning" Click="Send_Click" />
<Button x:Name="btnError" Content="Error" Click="Send_Click" />
<CheckBox x:Name="cbWithContext" Content="add SourceContext" HorizontalAlignment="Left" VerticalAlignment ="Center"/>
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox Grid.Row="1" Header="Functions">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<Button x:Name="btnClear" Content="Clear" Click="Clear_Click" />
<Button Content="Scroll Top" Click="TopScroll_Click" />
<Button Content="Scroll Bottom" Click="BottomScroll_Click" />
<CheckBox x:Name="cbAutoScroll" Content="Scroll To Last" HorizontalAlignment="Left" VerticalAlignment ="Center" Checked="AutoScroll_Checked" Unchecked="AutoScroll_Unchecked"/>
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox Grid.Row="2" Header="Autosending">
<StackPanel Orientation="Vertical">
<CheckBox x:Name="chkBackgroundSending" Content="Send logs from background thread." Checked="BackgroundSending_Checked" IsChecked="False" Unchecked="BackgroundSending_Unchecked" />
</StackPanel>
</GroupBox>
<GroupBox Grid.Row="3" Header="SerilogViewer">
<serilogviewer:SerilogViewer x:Name="logCtrl" TimeWidth="auto" ContextWidth="auto" LevelWidth="auto" ExceptionWidth="auto" MessageWidth="auto" />
</GroupBox>
</Grid>
</Window>