|
|
@@ -3,8 +3,335 @@
|
|
|
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:YSAI.Tool.Wpf.views">
|
|
|
- <Grid>
|
|
|
-
|
|
|
- </Grid>
|
|
|
+ xmlns:local="clr-namespace:YSAI.Tool.Wpf.views"
|
|
|
+
|
|
|
+ xmlns:c="clr-namespace:YSAI.Tool.Wpf.controllers"
|
|
|
+ xmlns:txt="clr-namespace:YSAI.Core.Wpf.controls.textbox;assembly=YSAI.Core.Wpf"
|
|
|
+ xmlns:btn="clr-namespace:YSAI.Core.Wpf.controls.button;assembly=YSAI.Core.Wpf"
|
|
|
+ xmlns:pt="http://propertytools.org/wpf"
|
|
|
+ xmlns:helpers="clr-namespace:YSAI.Core.Wpf.style;assembly=YSAI.Core.Wpf"
|
|
|
+ xmlns:cs="clr-namespace:YSAI.Core.Wpf.converters;assembly=YSAI.Core.Wpf"
|
|
|
+ xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
+ xmlns:mvvm="clr-namespace:YSAI.Core.Wpf.mvvm;assembly=YSAI.Core.Wpf"
|
|
|
+ Background="{DynamicResource ContentBackgroundPicture}">
|
|
|
+ <UserControl.DataContext>
|
|
|
+ <c:WsServiceController />
|
|
|
+ </UserControl.DataContext>
|
|
|
+
|
|
|
+
|
|
|
+ <!--资源加载-->
|
|
|
+ <UserControl.Resources>
|
|
|
+ <ResourceDictionary>
|
|
|
+ <Style TargetType="ToolTip">
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Font.Content.Foreground}"/>
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource Control.Border.Color}"/>
|
|
|
+ </Style>
|
|
|
+ <cs:CheckConverter x:Key="CheckConverter" />
|
|
|
+ <ResourceDictionary.MergedDictionaries>
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_ComboBox.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_Button.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_DataGrid.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_Border.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_TbaControl.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_ScrollViewer.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_GroupBox.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_TextBox.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_TreeDataGrid.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_CheckBox.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_RadioButton.xaml" />
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/YSAI.Core.Wpf;component/resources/style/Style_ContextMenu.xaml" />
|
|
|
+ </ResourceDictionary.MergedDictionaries>
|
|
|
+ </ResourceDictionary>
|
|
|
+ </UserControl.Resources>
|
|
|
+
|
|
|
+ <Border Background="#F0F2F0" Width="auto" Height="auto" CornerRadius="{DynamicResource WindowCornerRadius}" Margin="50">
|
|
|
+ <GroupBox Style="{StaticResource GroupBoxTab}" Margin="0" >
|
|
|
+ <GroupBox.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid Background="Transparent">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource Tool}" Width="14" />
|
|
|
+ <TextBlock Text="{Binding ToolTitle}" FontSize="13" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" />
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox.Header>
|
|
|
+ <!--基础数据与功能区域-->
|
|
|
+ <Grid >
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <!--基础数据-->
|
|
|
+ <Grid Grid.Column="0" Margin="0,0,5,0" Width="500">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <!--导入导出-->
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,-30" Panel.ZIndex="2">
|
|
|
+ <btn:ButtonControl
|
|
|
+ Width="80"
|
|
|
+ Command="{Binding IncBasics}"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+ BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+ IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+ Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+ Icon="{DynamicResource Inc}"
|
|
|
+ Content="导入"
|
|
|
+ BorderThickness="1,0,0,0" />
|
|
|
+ <btn:ButtonControl
|
|
|
+ Width="80"
|
|
|
+ Command="{Binding ExpBasics}"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+ BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+ IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+ Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+ Icon="{DynamicResource Exp}"
|
|
|
+ Content="导出"
|
|
|
+ BorderThickness="1,0,0,0" />
|
|
|
+ </StackPanel>
|
|
|
+ <!--属性表格-->
|
|
|
+ <Grid Grid.Row="1" Panel.ZIndex="1">
|
|
|
+ <Grid.Resources>
|
|
|
+ <ResourceDictionary>
|
|
|
+ <Style TargetType="{x:Type Label}" >
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Font.Content.Foreground}"/>
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource DefaultComboBox}" >
|
|
|
+ <Setter Property="Height" Value="25"/>
|
|
|
+ <Setter Property="Background" Value="White"/>
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
+ <Setter Property="helpers:Style_ComboBox.CornerRadius" Value="{DynamicResource WindowCornerRadius}"/>
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="{x:Type pt:TextBoxEx}" BasedOn="{StaticResource TextBoxStyle2}">
|
|
|
+ <Setter Property="Height" Value="25"/>
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Font.Content.Foreground}"/>
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource Control.Border.Color}"/>
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style TargetType="CheckBox" BasedOn="{StaticResource CheckBoxStyle}"/>
|
|
|
+
|
|
|
+ <Style TargetType="ContentControl" >
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Font.Content.Foreground}"/>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style TargetType="Expander">
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource Font.Content.Foreground}"/>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style TargetType="RadioButton" BasedOn="{StaticResource RadioButtonStyle}"/>
|
|
|
+
|
|
|
+
|
|
|
+ <Style TargetType="GroupBox" BasedOn="{StaticResource GroupBoxTab}"/>
|
|
|
+
|
|
|
+
|
|
|
+ <DataTemplate x:Key="HeaderTemplate">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource ConfigBase}" Width="14" />
|
|
|
+ <TextBlock Text="{Binding}" FontSize="13" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" />
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+
|
|
|
+ </ResourceDictionary>
|
|
|
+ </Grid.Resources>
|
|
|
+ <pt:PropertyGrid Margin="1,-4,1,0"
|
|
|
+SelectedObject="{Binding BasicsData}"
|
|
|
+TabVisibility="VisibleIfMoreThanOne"
|
|
|
+TextBlock.Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+CategoryHeaderTemplate="{StaticResource HeaderTemplate}"/>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--功能模块与信息-->
|
|
|
+ <Grid Grid.Column="1" MinWidth="600">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <!--功能模块-->
|
|
|
+ <GroupBox Style="{StaticResource GroupBoxTab}" Margin="0" Grid.Row="0">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid Background="transparent">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource Function}" Width="14" />
|
|
|
+ <TextBlock Text="功能" FontSize="13" Margin="0,0,10,0" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" />
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox.Header>
|
|
|
+ <!--■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="200"/>
|
|
|
+ <ColumnDefinition />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <!--Start / Stop-->
|
|
|
+ <Grid Grid.Row="0" Grid.Column="1" Margin="0,-40,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
|
|
|
+ <btn:ButtonControl Grid.Column="5" Width="80" Command="{Binding Start}" HorizontalAlignment="Right" VerticalAlignment="Center" BorderThickness="1,0,0,0"
|
|
|
+ IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+ BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+ IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+ Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+ Icon="{DynamicResource Start}"
|
|
|
+ Content="启动"/>
|
|
|
+
|
|
|
+ <btn:ButtonControl Grid.Column="6" Width="80" Command="{Binding Stop}" HorizontalAlignment="Right" VerticalAlignment="Center" BorderThickness="1,0,0,0"
|
|
|
+ IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+ BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+ IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+ Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+ Icon="{DynamicResource Stop}"
|
|
|
+ Content="停止"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <!--发送区域-->
|
|
|
+ <Grid Grid.Row="1" Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,-30">
|
|
|
+ <CheckBox Margin="0,0,10,0" IsChecked="{Binding MassData}" Content="群发" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right" Style="{StaticResource CheckBoxStyle}" Foreground="{DynamicResource Font.Content.Foreground}" />
|
|
|
+ <RadioButton ToolTip="发送方式" Margin="0,0,15,0" Visibility="{Binding AsciiVisibility}" IsChecked="{Binding DataFormat,Mode=TwoWay,Converter={StaticResource CheckConverter},ConverterParameter=0}" Style="{StaticResource RadioButtonStyle}" Content="ASCII" VerticalAlignment="Center" HorizontalAlignment="Right" />
|
|
|
+ <RadioButton ToolTip="发送方式" Margin="0,0,15,0" Visibility="{Binding HexVisibility}" IsChecked="{Binding DataFormat,Mode=TwoWay,Converter={StaticResource CheckConverter},ConverterParameter=1}" Style="{StaticResource RadioButtonStyle}" Content="Hex" VerticalAlignment="Center" HorizontalAlignment="Right" />
|
|
|
+ <btn:ButtonControl Grid.Column="3" Width="80" Command="{Binding Send}" HorizontalAlignment="Right" VerticalAlignment="Center" BorderThickness="1,0,0,0"
|
|
|
+ IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+ BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+ IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+ Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+ Icon="{DynamicResource Send}"
|
|
|
+ Content="发送"/>
|
|
|
+ </StackPanel>
|
|
|
+ <GroupBox Style="{StaticResource GroupBoxTab}" Grid.Row="1" Grid.ColumnSpan="8" Width="auto" Margin="4,0,0,0">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource Data}" Width="14" />
|
|
|
+ <TextBlock Text="数据" FontSize="13" Margin="0,0,10,0" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox.Header>
|
|
|
+ <TextBox Padding="5" Style="{DynamicResource TextBoxStyle2}" Height="230" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Text="{Binding SendData}" />
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--客户端列表-->
|
|
|
+ <Grid Grid.Row="0" Grid.RowSpan="2" Grid.Column="0">
|
|
|
+ <GroupBox Style="{StaticResource GroupBoxTab}" Grid.Row="0" Grid.ColumnSpan="2" Margin="0">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid Background="transparent">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource User}" Width="14" />
|
|
|
+ <TextBlock Text="客户端列表" FontSize="13" Margin="0,0,10,0" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" />
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox.Header>
|
|
|
+ <DataGrid ColumnHeaderHeight="40" Foreground="{DynamicResource Font.Content.Foreground}" ItemsSource="{Binding DataGridData}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="SelectionChanged">
|
|
|
+ <mvvm:EventCommand Command="{Binding GridDataSelectionChanged}" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="地址" Width="*" Binding="{Binding IP}" />
|
|
|
+ <DataGridTextColumn Header="端口" Width="*" Binding="{Binding Port}" />
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!--■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-->
|
|
|
+ </GroupBox>
|
|
|
+ <!--信息-->
|
|
|
+ <GroupBox Style="{StaticResource GroupBoxTab}" Margin="0,5,0,0" Grid.Row="1">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Image Grid.Column="0" Margin="10,0,8,0" Source="{DynamicResource Info}" Width="14" />
|
|
|
+ <TextBlock Text="信息" FontSize="13" Margin="0,0,10,0" Grid.Column="1" Foreground="{DynamicResource Font.Content.Foreground}" VerticalAlignment="Center"/>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </GroupBox.Header>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
+ <RowDefinition />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" Margin="0,-40,0,0">
|
|
|
+ <RadioButton ToolTip="显示方式" Margin="0,0,15,0" Visibility="{Binding AsciiVisibility}" IsChecked="{Binding InfoFormat,Mode=TwoWay,Converter={StaticResource CheckConverter},ConverterParameter=0}" Style="{StaticResource RadioButtonStyle}" Content="ASCII" VerticalAlignment="Center" HorizontalAlignment="Right" />
|
|
|
+ <RadioButton ToolTip="显示方式" Margin="0,0,15,0" Visibility="{Binding HexVisibility}" IsChecked="{Binding InfoFormat,Mode=TwoWay,Converter={StaticResource CheckConverter},ConverterParameter=1}" Style="{StaticResource RadioButtonStyle}" Content="Hex" VerticalAlignment="Center" HorizontalAlignment="Right" />
|
|
|
+ <btn:ButtonControl Width="80" Command="{Binding Clear}" HorizontalAlignment="Right" VerticalAlignment="Center" BorderThickness="1,0,0,0"
|
|
|
+IsMouseOverBorderBrushColor="{DynamicResource Control.Border.One.Color}"
|
|
|
+BorderBrush="{DynamicResource Control.Border.Color}"
|
|
|
+IsPressedBorderBrushColor="{DynamicResource Control.Border.Two.Color}"
|
|
|
+Foreground="{DynamicResource Font.Content.Foreground}"
|
|
|
+Icon="{DynamicResource Clear}"
|
|
|
+Content="清空"/>
|
|
|
+ </StackPanel>
|
|
|
+ <TextBox Grid.Row="1" Padding="5" Grid.ColumnSpan="2" Style="{DynamicResource TextBoxStyle2}" FontSize="13" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Text="{Binding Info}" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="TextChanged">
|
|
|
+ <mvvm:EventCommand Command="{Binding Info_TextChanged}" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </TextBox>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+ </Border>
|
|
|
</UserControl>
|