92 lines
3.5 KiB
Plaintext
92 lines
3.5 KiB
Plaintext
|
|
<UserControl
|
||
|
|
x:Class="AutomaticApp.Views.LogView"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:converters="clr-namespace:AutomaticApp.Common"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
|
xmlns:local="clr-namespace:AutomaticApp.Views"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
d:DesignHeight="450"
|
||
|
|
d:DesignWidth="800"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<UserControl.Resources>
|
||
|
|
<converters:VisibiltyConveter x:Key="VisibiltyConveter" />
|
||
|
|
</UserControl.Resources>
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="35" />
|
||
|
|
<RowDefinition />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Grid>
|
||
|
|
<Button
|
||
|
|
Width="80"
|
||
|
|
Height="30"
|
||
|
|
Margin="0,5,0,0"
|
||
|
|
HorizontalAlignment="Center"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
Click="Button_Click"
|
||
|
|
Content="清空"
|
||
|
|
Style="{StaticResource ButtonStyle}"
|
||
|
|
Tag=""
|
||
|
|
Visibility="Hidden" />
|
||
|
|
<StackPanel
|
||
|
|
Margin="0,0,10,0"
|
||
|
|
HorizontalAlignment="Right"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
Orientation="Horizontal">
|
||
|
|
<TextBlock
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="20"
|
||
|
|
Foreground="White"
|
||
|
|
Text="选择日期:" />
|
||
|
|
<DatePicker
|
||
|
|
Name="Req_T"
|
||
|
|
Width="120"
|
||
|
|
Margin="10,0,20,0"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="15"
|
||
|
|
Foreground="Black"
|
||
|
|
SelectedDate="{Binding SelectedDate}">
|
||
|
|
<i:Interaction.Triggers>
|
||
|
|
<i:EventTrigger EventName="SelectedDateChanged">
|
||
|
|
<i:InvokeCommandAction Command="{Binding ReadTxtLogCommand}" />
|
||
|
|
</i:EventTrigger>
|
||
|
|
</i:Interaction.Triggers>
|
||
|
|
</DatePicker>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
<UniformGrid Grid.Row="1" Columns="1">
|
||
|
|
<Border Margin="10" CornerRadius="10">
|
||
|
|
<ScrollViewer VerticalScrollBarVisibility="Visible">
|
||
|
|
<TextBlock
|
||
|
|
Margin="10"
|
||
|
|
FontSize="15"
|
||
|
|
Foreground="#FF2BEDF1"
|
||
|
|
Text="{Binding ErrorMessageModel._MessageCon}"
|
||
|
|
TextWrapping="Wrap" />
|
||
|
|
</ScrollViewer>
|
||
|
|
</Border>
|
||
|
|
</UniformGrid>
|
||
|
|
<StackPanel
|
||
|
|
Grid.Row="1"
|
||
|
|
Margin="0,0,50,20"
|
||
|
|
HorizontalAlignment="Right"
|
||
|
|
VerticalAlignment="Bottom"
|
||
|
|
Orientation="Horizontal"
|
||
|
|
Visibility="{Binding TotalPage, Converter={StaticResource ResourceKey=VisibiltyConveter}}">
|
||
|
|
<TextBlock
|
||
|
|
Margin="0,0,20,0"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="20"
|
||
|
|
Foreground="White"
|
||
|
|
Text="{Binding LogMsg}" />
|
||
|
|
<Button
|
||
|
|
Margin="0,0,20,0"
|
||
|
|
Command="{Binding ForwordLogCommand}"
|
||
|
|
Content="上一页" />
|
||
|
|
<Button Command="{Binding NextLogCommand}" Content="下一页" />
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</UserControl>
|