1 <Page x:Class="SpeedportHybridControl.page.SyslogPage"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6 xmlns:local="clr-namespace:SpeedportHybridControl"
8 Width="Auto" Height="Auto"
10 <Page.CommandBindings>
12 Command="ApplicationCommands.Copy"
13 Executed="CommandBinding_Executed"/>
14 </Page.CommandBindings>
15 <Grid DataContext="{StaticResource SyslogData}">
16 <TextBlock HorizontalAlignment="Right" Margin="0,0,124,0" Text="Suche:" VerticalAlignment="Top"/>
17 <TextBox x:Name="tbSearch" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120" Text="" TextChanged="TextChanged"/>
19 <ListView ItemsSource="{Binding syslogList}" x:Name="listView" Margin="0,23,0,39">
20 <ListView.ContextMenu>
22 <MenuItem Header="Copy" Command="ApplicationCommands.Copy"/>
24 </ListView.ContextMenu>
26 <Style TargetType="{x:Type GridViewColumnHeader}">
27 <Setter Property="HorizontalContentAlignment" Value="Left" />
32 <GridViewColumn TextBlock.TextAlignment="Left" Header="Datum" DisplayMemberBinding="{Binding timestamp}" Width="Auto"/>
33 <GridViewColumn TextBlock.TextAlignment="Left" Header="Meldung" DisplayMemberBinding="{Binding message}" Width="Auto"/>
38 <TextBlock Text="{Binding datetime}" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
39 <Button x:Name="btnClear" Content="Leeren" Click="button_click" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="72"/>
41 <Button x:Name="btnReload" Content="Aktualisieren" Margin="218,0,218,0" Click="button_click" VerticalAlignment="Bottom"/>