2c3fa524efe6262d3d2abca8be64f40fd274b512
[GitHub/Stricted/SpeedportHybridControl.git] / SpeedportHybridControl / page / SyslogPage.xaml
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"
7 mc:Ignorable="d"
8 Width="Auto" Height="Auto"
9 Title="SyslogPage">
10 <Grid DataContext="{StaticResource SyslogPageModel}">
11 <TextBlock HorizontalAlignment="Right" Margin="0,0,124,0" Text="Suche:" VerticalAlignment="Top"/>
12 <TextBox x:Name="tbSearch" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120" Text="{Binding Path=SearchText, UpdateSourceTrigger=PropertyChanged}"/>
13
14 <ListView ItemsSource="{Binding filteredList}" SelectedItem="{Binding Path=SelectedItem, UpdateSourceTrigger=PropertyChanged}" x:Name="listView" Margin="0,23,0,39">
15 <ListView.ContextMenu>
16 <ContextMenu>
17 <MenuItem Header="Copy" Command="{Binding Path=CopyCommand, NotifyOnTargetUpdated=True}"/>
18 </ContextMenu>
19 </ListView.ContextMenu>
20 <ListView.Resources>
21 <Style TargetType="{x:Type GridViewColumnHeader}">
22 <Setter Property="HorizontalContentAlignment" Value="Left" />
23 </Style>
24 </ListView.Resources>
25 <ListView.View>
26 <GridView>
27 <GridViewColumn TextBlock.TextAlignment="Left" Header="Datum" DisplayMemberBinding="{Binding timestamp}" Width="Auto"/>
28 <GridViewColumn TextBlock.TextAlignment="Left" Header="Meldung" DisplayMemberBinding="{Binding message}" Width="Auto"/>
29 </GridView>
30 </ListView.View>
31 </ListView>
32
33 <TextBlock Text="{Binding datetime}" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
34 <Button Command="{Binding Path=ClearCommand}" x:Name="btnClear" Content="Leeren" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="72"/>
35
36 <Button Command="{Binding Path=ReloadCommand}" x:Name="btnReload" Content="Aktualisieren" Margin="218,0,218,0" VerticalAlignment="Bottom"/>
37 </Grid>
38 </Page>