454 lines
28 KiB
XML
454 lines
28 KiB
XML
<UserControl x:Class="SWS.CAD.Views.Dialog.DialogSignalPredistribution"
|
|
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:prism="http://prismlibrary.com/"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.Dialog"
|
|
xmlns:cvt="clr-namespace:SWS.Commons.Helper.Converter;assembly=SWS.Commons"
|
|
xmlns:CustomControl="clr-namespace:SWS.CustomControl;assembly=SWS.CustomControl"
|
|
Width="1000" Height="790"
|
|
mc:Ignorable="d" >
|
|
<prism:Dialog.WindowStyle>
|
|
<Style TargetType="Window">
|
|
<!--最大化-->
|
|
<Setter Property="Width" Value="1000" />
|
|
<Setter Property="Height" Value="800" />
|
|
|
|
<Setter Property="SizeToContent" Value="WidthAndHeight" />
|
|
|
|
<Setter Property="WindowState" Value="Normal" />
|
|
<Setter Property="WindowStyle" Value="None" />
|
|
<Setter Property="ResizeMode" Value="NoResize" />
|
|
</Style>
|
|
</prism:Dialog.WindowStyle>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.WPF;component/Style/CustomStyles.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- 转换器 -->
|
|
<cvt:RadioButtonValueConverter x:Key="RadioButtonValueCvt" />
|
|
|
|
<!-- 树结构展开按钮样式 -->
|
|
<Style x:Key="ExpanderStyle" TargetType="{x:Type ToggleButton}">
|
|
<Setter Property="IsEnabled" Value="True" />
|
|
<Setter Property="IsTabStop" Value="True" />
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
<Grid>
|
|
<Grid x:Name="ButtonOver" Opacity="0" Margin="0,4,0,0"
|
|
HorizontalAlignment="Right" VerticalAlignment="Top"
|
|
Width="16" Height="16">
|
|
<Rectangle Stroke="#FF027BA6" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" Width="Auto" Height="Auto"
|
|
RadiusX="3" RadiusY="3">
|
|
<Rectangle.Fill>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FF00BCFF" Offset="0" />
|
|
<GradientStop Color="#FF027BA6" Offset="1" />
|
|
<GradientStop Color="#FF00A5E0" Offset="0.5" />
|
|
<GradientStop Color="#FF005674" Offset="0.501" />
|
|
</LinearGradientBrush>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
<Rectangle x:Name="CollapsedVisualOver"
|
|
HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
Width="2" Height="8" RadiusX="0" RadiusY="0"
|
|
Fill="#FFFFFFFF" Margin="7,4,0,0" />
|
|
<Rectangle RadiusX="0" RadiusY="0" Fill="#FFFFFFFF"
|
|
HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
Width="8" Height="2" Margin="4,7,0,0" />
|
|
</Grid>
|
|
<Grid x:Name="Button" Margin="0,6,5.5,0" HorizontalAlignment="Right"
|
|
VerticalAlignment="Top" Width="10" Height="10">
|
|
<Rectangle Stroke="#ffc7defc" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" Width="Auto" Height="Auto"
|
|
RadiusX="1" RadiusY="1" Fill="#ffc7defc">
|
|
</Rectangle>
|
|
<Rectangle x:Name="CollapsedVisual" HorizontalAlignment="Left"
|
|
VerticalAlignment="Top" Width="2" Height="6" RadiusX="0"
|
|
RadiusY="0" Fill="#FF3C6AA3" Margin="4,2,0,0" />
|
|
<Rectangle RadiusX="0" RadiusY="0" Fill="#FF3C6AA3"
|
|
HorizontalAlignment="Left" Margin="2,3.5,0,0"
|
|
VerticalAlignment="Top" Width="6" Height="2" />
|
|
</Grid>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Trigger.EnterActions>
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetName="CollapsedVisualOver" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
|
|
<DoubleAnimation Storyboard.TargetName="CollapsedVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="0"/>
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</Trigger.EnterActions>
|
|
<Trigger.ExitActions>
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation Storyboard.TargetName="CollapsedVisualOver" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
|
|
<DoubleAnimation Storyboard.TargetName="CollapsedVisual" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</Trigger.ExitActions>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- 树结构节点默认展开样式设置 -->
|
|
<Style x:Key="ExpandedTreeViewItemStyle" TargetType="telerik:RadTreeViewItem">
|
|
<Setter Property="IsExpanded" Value="True"/>
|
|
</Style>
|
|
|
|
<!-- GridViewCell样式 -->
|
|
<Style x:Key="CellTyle1" TargetType="telerik:GridViewCell" >
|
|
<Setter Property="Background" Value="#F8F9F1" />
|
|
</Style>
|
|
|
|
<!-- 使用ItemsControl垂直显示多个值 -->
|
|
<DataTemplate x:Key="CellTemplate1">
|
|
<ItemsControl ItemsSource="{Binding Index}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#cccccc" BorderThickness="0,0,0,1" Padding="0">
|
|
<TextBlock Text="{Binding}" TextAlignment="Center" Padding="4,2" />
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="CellEditTemplate1">
|
|
<ItemsControl ItemsSource="{Binding Index}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding}" TextAlignment="Center" Padding="4,2" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
|
|
<!-- 使用ItemsControl垂直显示多个值 -->
|
|
<DataTemplate x:Key="CellTemplate2">
|
|
<ItemsControl ItemsSource="{Binding CableWires}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#cccccc" BorderThickness="0,0,0,1" Padding="0"
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<TextBlock Text="{Binding PreAssignChannelTermNo}" TextAlignment="Center" Padding="4,2" />
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="CellEditTemplate2">
|
|
<ItemsControl ItemsSource="{Binding CableWires}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding PreAssignChannelTermNo}" TextAlignment="Center" Padding="4,2" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
|
|
<!-- 使用ItemsControl垂直显示多个值 -->
|
|
<DataTemplate x:Key="CellTemplate3">
|
|
<ItemsControl ItemsSource="{Binding CableWires}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#cccccc" BorderThickness="0,0,0,1" Padding="0">
|
|
<TextBlock Text="{Binding Wire_Tag}" TextAlignment="Center" Padding="4,2" Width="auto"/>
|
|
</Border>
|
|
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="CellEditTemplate3">
|
|
<ItemsControl ItemsSource="{Binding CableWires}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding Wire_Tag}" TextAlignment="Center" Padding="4,2" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
|
|
<!-- 使用ItemsControl垂直显示多个值 -->
|
|
<DataTemplate x:Key="CellTemplate4">
|
|
<ItemsControl ItemsSource="{Binding Polaritys}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#cccccc" BorderThickness="0,0,0,1" Padding="0">
|
|
<TextBlock Text="{Binding Polarity}" TextAlignment="Center" Padding="4,2" />
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="CellEditTemplate4">
|
|
<ItemsControl ItemsSource="{Binding Polaritys}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding Polarity}" TextAlignment="Center" Padding="4,2" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<telerik:RadBusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}">
|
|
<StackPanel Background="#f0f0f0">
|
|
|
|
<CustomControl:customWindowTitleBar x:Name="titleBar" />
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<GroupBox Margin="5,10,5,5"
|
|
VerticalAlignment="Bottom"
|
|
Header="通讯信号">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="是否通讯母线" Margin="5"/>
|
|
<RadioButton x:Name="RadioButton2"
|
|
Content="是"
|
|
GroupName="OptionGroup1"
|
|
Margin="5"
|
|
IsChecked="{Binding SelectedOption1 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=是}"/>
|
|
<RadioButton x:Name="RadioButton1"
|
|
Content="否"
|
|
GroupName="OptionGroup1"
|
|
Margin="5"
|
|
IsChecked="{Binding SelectedOption1 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=否}"/>
|
|
<TextBlock Text="通讯格式" Margin="5"/>
|
|
<ComboBox Width="100"
|
|
IsEnabled="{Binding IsChecked,ElementName=RadioButton2}"
|
|
ItemsSource="{Binding CommunicationFormats}"
|
|
SelectedItem="{Binding CommunicationFormat }"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Margin="5,0,5,5"
|
|
VerticalAlignment="Bottom"
|
|
Header="信号类型">
|
|
<StackPanel Orientation="Horizontal">
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}"
|
|
IsChecked="{Binding SelectedOption2 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=Digital}"
|
|
Content="Digital" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}"
|
|
IsChecked="{Binding SelectedOption2 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=4-20mA}"
|
|
Content="4-20mA" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}"
|
|
IsChecked="{Binding SelectedOption2 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=-10V-10V}"
|
|
Content="-10V-10V" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}"
|
|
IsChecked="{Binding SelectedOption2 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=PT100}"
|
|
Content="PT100" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}"
|
|
IsChecked="{Binding SelectedOption2 ,Converter={StaticResource RadioButtonValueCvt},ConverterParameter=Pulse}"
|
|
Content="Pulse" GroupName="OptionGroup2" Margin="5"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
<GroupBox Margin="5,0,5,0"
|
|
Grid.Row="2"
|
|
VerticalAlignment="Bottom"
|
|
Header="电缆配置信息">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<Border BorderThickness="0 0 0 1" Margin="0,0,0,0">
|
|
<Label Height="30" Content="选择系统柜" Foreground="Black" VerticalContentAlignment="Bottom"/>
|
|
</Border>
|
|
|
|
<!-- 左侧树形结构 -->
|
|
<Border>
|
|
<telerik:RadTreeView x:Name="treeView1"
|
|
Height="600"
|
|
Width="200"
|
|
Background="White"
|
|
IsLineEnabled="True"
|
|
ItemContainerStyle="{StaticResource ExpandedTreeViewItemStyle}"
|
|
ExpanderStyle="{StaticResource ExpanderStyle}"
|
|
ItemsSource="{Binding PanelTreels}"
|
|
SelectedItem="{Binding SelectedTreeNode,Mode=TwoWay}"
|
|
telerik:StyleManager.Theme="Office_Blue"
|
|
AllowDrop="True"
|
|
AutoScrollToSelectedItem="True"
|
|
IsVirtualizing="True"
|
|
telerik:TextSearch.TextPath="Text"
|
|
>
|
|
<telerik:RadTreeView.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
|
<TextBlock Text="{Binding Text}">
|
|
</TextBlock>
|
|
<HierarchicalDataTemplate.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}">
|
|
<TextBlock Text="{Binding Text}"/>
|
|
<HierarchicalDataTemplate.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding PanelTreels}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Text}"/>
|
|
<TextBlock Text=" (" />
|
|
<TextBlock Text="{Binding NodeExtData.ChannelsSpared}" FontWeight="Bold" />
|
|
<TextBlock Text=")" />
|
|
</StackPanel>
|
|
</HierarchicalDataTemplate>
|
|
</HierarchicalDataTemplate.ItemTemplate>
|
|
</HierarchicalDataTemplate>
|
|
</HierarchicalDataTemplate.ItemTemplate>
|
|
</HierarchicalDataTemplate>
|
|
</telerik:RadTreeView.ItemTemplate>
|
|
</telerik:RadTreeView>
|
|
</Border>
|
|
</StackPanel>
|
|
<!-- 数据表格 -->
|
|
<Grid Grid.Column="1">
|
|
<telerik:RadGridView x:Name="RadGridView1" SelectionMode="Single" Width="auto" Height="630"
|
|
AutoGenerateColumns="False" IsFilteringAllowed="False" Background="#a0a0a0"
|
|
IsReadOnly="False" RowIndicatorVisibility="Collapsed"
|
|
ShowGroupPanel="False" telerik:StyleManager.Theme="Office_Blue"
|
|
ItemsSource="{Binding SignalPredistributionInfos}" SelectedItem="{Binding SelectedChannelInfo, Mode=TwoWay}"
|
|
>
|
|
<telerik:RadGridView.Columns>
|
|
<telerik:GridViewDataColumn Header="序号" CellTemplate="{StaticResource CellTemplate1}" CellStyle="{StaticResource CellTyle1}" IsReadOnly="True"/>
|
|
|
|
<telerik:GridViewDataColumn Header="电缆对" DataMemberBinding="{Binding CablePair}"/>
|
|
<telerik:GridViewDataColumn Header="电缆线芯" CellTemplate="{StaticResource CellTemplate3}" CellEditTemplate="{StaticResource CellEditTemplate3}"/>
|
|
<telerik:GridViewDataColumn Header="极性" CellTemplate="{StaticResource CellTemplate4}" CellEditTemplate="{StaticResource CellEditTemplate4}"/>
|
|
<telerik:GridViewComboBoxColumn Header="{Binding SignalColumnName,Mode=TwoWay}"
|
|
IsVisible="{Binding IsChecked,ElementName=RadioButton1}"
|
|
ItemsSource="{Binding DataContext.SignalTypeColumn, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
|
|
DataMemberBinding="{Binding SignalType}"
|
|
Width="120">
|
|
<telerik:GridViewComboBoxColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SignalType}"
|
|
TextTrimming="CharacterEllipsis"
|
|
ToolTip="{Binding SignalType}"/>
|
|
</DataTemplate>
|
|
</telerik:GridViewComboBoxColumn.CellTemplate>
|
|
</telerik:GridViewComboBoxColumn>
|
|
<telerik:GridViewDataColumn Header="中文描述" DataMemberBinding="{Binding ChineseDescription}" Width="120">
|
|
<telerik:GridViewDataColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding ChineseDescription}"
|
|
TextTrimming="CharacterEllipsis"
|
|
ToolTip="{Binding ChineseDescription}"/>
|
|
</DataTemplate>
|
|
</telerik:GridViewDataColumn.CellTemplate>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn Header="英文描述" DataMemberBinding="{Binding EnglishDescription}" Width="120">
|
|
<telerik:GridViewDataColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding EnglishDescription}"
|
|
TextTrimming="CharacterEllipsis"
|
|
ToolTip="{Binding EnglishDescription}"/>
|
|
</DataTemplate>
|
|
</telerik:GridViewDataColumn.CellTemplate>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewComboBoxColumn Header="输入/输出"
|
|
ItemsSource="{Binding DataContext.InorOuts, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
|
|
DataMemberBinding="{Binding InorOut}"
|
|
Width="60">
|
|
|
|
</telerik:GridViewComboBoxColumn>
|
|
<telerik:GridViewDataColumn Header="传感器编号" DataMemberBinding="{Binding EnglishDescription}" Width="auto">
|
|
<telerik:GridViewDataColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding SensorCode}"
|
|
TextTrimming="CharacterEllipsis"
|
|
ToolTip="{Binding SensorCode}"/>
|
|
</DataTemplate>
|
|
</telerik:GridViewDataColumn.CellTemplate>
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewDataColumn Header="端子号" Width="*" CellTemplate="{StaticResource CellTemplate2}" CellEditTemplate="{StaticResource CellEditTemplate2}"/>
|
|
</telerik:RadGridView.Columns>
|
|
</telerik:RadGridView>
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
<Grid>
|
|
<StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Left">
|
|
<telerik:RadButton Margin="0,0,20,0"
|
|
Width="100"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource sysBtn4}"
|
|
Command="{Binding ButtonCmd}"
|
|
CommandParameter="清除配置"
|
|
Content="清除配置" />
|
|
<telerik:RadButton Margin="0,0,0,0"
|
|
Width="100"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource sysBtn2}"
|
|
Command="{Binding ButtonCmd}"
|
|
CommandParameter="指定中英文"
|
|
Content="指定中英文" />
|
|
</StackPanel>
|
|
<StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<telerik:RadButton Margin="0,0,20,0"
|
|
Width="100"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource sysBtn}"
|
|
Command="{Binding OKCommand}"
|
|
CommandParameter="确定"
|
|
Content="确定" />
|
|
<telerik:RadButton Margin="0,0,0,0"
|
|
Width="100"
|
|
HorizontalAlignment="Right"
|
|
Style="{StaticResource sysBtn2}"
|
|
Command="{Binding CloseCommand}"
|
|
CommandParameter="取消"
|
|
Content="取消" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
</telerik:RadBusyIndicator>
|
|
</UserControl>
|