Files
BeWoPlaner/BeWo/View/Detail/DebugMessageLogView.xaml
2025-04-08 10:22:22 +02:00

42 lines
1.5 KiB
XML

<Window
x:Class="BeWo.View.Detail.DebugMessageLogView"
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:local="clr-namespace:BeWo.View.Detail"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Debug Log"
Width="1000"
Height="900"
WindowStartupLocation="Manual"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<Button Click="ButtonBase_OnClick">Leeren</Button>
</StackPanel>
<ListView
x:Name="DebugListView"
Grid.Row="1"
Background="GhostWhite"
ItemsSource="{Binding DebugMessageList}">
<ListView.ItemTemplate>
<DataTemplate DataType="local:DebugWindowMessage">
<Grid>
<TextBlock
FontFamily="Consolas"
FontSize="16"
FontWeight="Bold"
Foreground="{Binding TextColor}"
Text="{Binding MessageText}" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Window>