CodeMerger/Views/LogWindow.xaml

32 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2025-02-23 07:10:00 -03:00
<Window x:Class="CodeMerger.Views.LogWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Merge Log" Height="600" Width="800"
WindowStartupLocation="CenterOwner">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox ItemsSource="{Binding LogMessages}" Grid.Row="0">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding Timestamp, StringFormat=HH:mm:ss.fff, Mode=OneWay}" Foreground="Gray"/>
<Run Text=" ["/>
<Run Text="{Binding Level, Mode=OneWay}" FontWeight="Bold"/>
<Run Text="] "/>
<Run Text="{Binding Message, Mode=OneWay}"/>
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Grid.Row="1" Content="Copy to Clipboard"
HorizontalAlignment="Right" Margin="0,10,0,0"
Width="120" Height="30"
Command="{Binding CopyToClipboardCommand}"/>
</Grid>
</Window>