|
@@ -4,22 +4,28 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:PLCTool.Views.MonitorManageView"
|
|
|
+ xmlns:nlog ="clr-namespace:NlogViewer;assembly=NlogViewer"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+ <!--<UserControl.Resources>
|
|
|
+ <Style TargetType="nlog:NlogViewer">
|
|
|
+
|
|
|
+ </Style>
|
|
|
+ </UserControl.Resources>-->
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="60"/>
|
|
|
<RowDefinition/>
|
|
|
</Grid.RowDefinitions>
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
|
- <Button Content="开始监控" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
+ <Button Content="开始监控" Margin="5,0" Command="{Binding StartCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
<Button Content="停止监控" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
<Button Content="清理Log" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
</StackPanel>
|
|
|
<StackPanel Grid.Row="1">
|
|
|
- <ListBox>
|
|
|
-
|
|
|
- </ListBox>
|
|
|
+ <nlog:NlogViewer x:Name="logCtrl" Background="Transparent" TimeWidth="120" LoggerNameWidth="100" LevelWidth="80" MessageWidth="200" ExceptionWidth="120">
|
|
|
+
|
|
|
+ </nlog:NlogViewer>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</UserControl>
|