11<UserControl xmlns =" https://github.com/avaloniaui"
22 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3- xmlns : vm =" clr-namespace:QCEDL.GUI.ViewModels"
4- xmlns : svc =" clr-namespace:QCEDL.GUI.Services"
5- xmlns : l =" clr-namespace:QCEDL.GUI.Markup"
6- x : Class =" QCEDL.GUI.Views.LogsView"
7- x : DataType =" vm:LogsViewModel" >
8- <StackPanel Spacing =" 16" MaxWidth =" 1040" >
9- <StackPanel Spacing =" 6" >
10- <TextBlock Classes =" label" Text =" {l:Localize Logs_Label}" />
11- <TextBlock Classes =" h1" Text =" {l:Localize Logs_Heading}" />
12- <TextBlock Classes =" body" Text =" {l:Localize Logs_Body}" />
3+ xmlns : vm =" using:QCEDL.GUI.ViewModels"
4+ xmlns : svc =" using:QCEDL.GUI.Services"
5+ x : Class =" QCEDL.GUI.Views.LogsView" x : DataType =" vm:LogsViewModel" >
6+ <StackPanel Spacing =" 16" >
7+ <StackPanel Orientation =" Horizontal" Spacing =" 8" >
8+ <Button Content =" Clear Logs" Command =" {Binding Clear}" />
139 </StackPanel >
1410
1511 <Border Classes =" card dark" Padding =" 16" >
16- <Grid RowDefinitions =" *,Auto" >
17- <ScrollViewer Grid.Row=" 0" HorizontalScrollBarVisibility =" Auto" Height =" 420" >
18- <ItemsControl ItemsSource =" {Binding Sink.Entries}" >
19- <ItemsControl .ItemTemplate>
20- <DataTemplate DataType =" svc:LogEntry" >
21- <Grid ColumnDefinitions =" 90,60,*" Margin =" 0,1" >
22- <TextBlock Grid.Column=" 0" FontFamily =" {DynamicResource FontMono}"
23- Foreground =" {DynamicResource BrushTextOnDark}"
24- FontSize =" 12" Text =" {Binding TimeText}" />
25- <TextBlock Grid.Column=" 1" FontFamily =" {DynamicResource FontMono}"
26- Foreground =" {DynamicResource BrushCoral}"
27- FontSize =" 12" Text =" {Binding LevelText}" />
28- <TextBlock Grid.Column=" 2" FontFamily =" {DynamicResource FontMono}"
29- Foreground =" {DynamicResource BrushTextInverse}"
30- FontSize =" 12" TextWrapping =" Wrap" Text =" {Binding Message}" />
31- </Grid >
32- </DataTemplate >
33- </ItemsControl .ItemTemplate>
34- </ItemsControl >
35- </ScrollViewer >
36- </Grid >
12+ <TextBox
13+ Height =" 420"
14+ FontFamily =" {DynamicResource FontMono}"
15+ FontSize =" 12"
16+ TextWrapping =" NoWrap"
17+ AcceptsReturn =" True"
18+ IsReadOnly =" True"
19+ ScrollViewer.HorizontalScrollBarVisibility=" Auto"
20+ ScrollViewer.VerticalScrollBarVisibility=" Auto"
21+ Foreground =" {DynamicResource BrushTextInverse}"
22+ Background =" Transparent"
23+ BorderThickness =" 0"
24+ Text =" {Binding Text, Mode=OneWay}" />
3725 </Border >
3826 </StackPanel >
39- </UserControl >
27+ </UserControl >
0 commit comments