Files
6098/Cowain.Bake.Main/Views/LogManagement.xaml

65 lines
4.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<UserControl x:Class="Cowain.Bake.Main.Views.LogManagement"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Cowain.Bake.Main.Views"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Height="30">
<!--<Label Content="{DynamicResource DateTime}" BorderThickness="0" Background="Transparent"
Margin="10,0,0,0" Foreground="Gray" Visibility="Collapsed"/>
<hc:DatePicker Width="150" x:Name="datePick" Visibility="Collapsed"/>
<Button Content="{DynamicResource Query}" Margin="10,0,0,0" Click="findLog_Click" x:Name="findLog" Visibility="Collapsed"/>
<Button Content="{DynamicResource RealTimeLog}" Margin="10,0,0,0" Click="realTime_Click" x:Name="realTime" Visibility="Collapsed"/>-->
<!--<hc:Divider Orientation="Vertical" LineStrokeThickness="5"
LineStroke="#3D99A0"/>-->
<!--<Label Content="{DynamicResource Filter}" BorderThickness="0" Background="Transparent"
Margin="0,0,0,0" Foreground="Gray"/>-->
<local:MultiComboBox x:Name="mucombo" SelectionChanged="mucombo_SelectionChanged" Margin="5,0,0,0.4" Width="200"/>
<Label x:Name="labstate" Background="Transparent" BorderThickness="0"
Margin="10,0,0,0" Foreground="YellowGreen"/>
</StackPanel>
<hc:ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto"
CanMouseWheel="true"
IsInertiaEnabled="True"
>
<ListBox x:Name="loglist" Background="LightGray"
hc:ScrollViewer.IsInertiaEnabled="True">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Line X1="0" X2="0" Y1="0" Y2="{Binding ActualHeight,RelativeSource={RelativeSource Mode=Self}}"
StrokeThickness="1" Stroke="#551e90ff" HorizontalAlignment="Center"/>
<Ellipse Width="6" Height="6" Fill="#AA1e90ff" VerticalAlignment="Top" Margin="0,4,1,0"/>
<StackPanel Grid.Column="1">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding LogLevel}" FontSize="12" Foreground="{Binding FontColor}" Margin="5,0,0,0"></TextBlock>
<TextBlock></TextBlock>
<TextBlock Text="{Binding LogText,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap"
Foreground="{Binding Foreground, ElementName=onelogs}"
FontSize="12" Margin="0,0,0,5"/>
</StackPanel>
<TextBlock Text="{Binding LogTime,StringFormat='yyyy-MM-dd HH:mm:ss'}" FontSize="11" Margin="5,5,0,10" Opacity="0.6" />
</StackPanel>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</hc:ScrollViewer>
</Grid>
</UserControl>