80 lines
5.0 KiB
XML
80 lines
5.0 KiB
XML
<UserControl x:Class="SWS.CAD.Views.Dialog.DialogCablePreAssignPreview"
|
|
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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<StackPanel Background="#5d6b99">
|
|
<local:customWindowTitleBar />
|
|
<Grid Margin="6" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0">
|
|
<telerik:RadGridView Name="RadGridView1"
|
|
Grid.Row="2"
|
|
telerik:StyleManager.Theme="Office_Blue"
|
|
AutoGenerateColumns="False" IsFilteringAllowed="False"
|
|
IsReadOnly="{Binding IsReadOnly,Mode=TwoWay}" RowIndicatorVisibility="Collapsed"
|
|
ItemsSource="{Binding PreAssignCables,Mode=TwoWay}" EditTriggers="CellClick"
|
|
SelectedItem="{Binding SelectedStripParametersInfo}"
|
|
LeftFrozenColumnCount="1" EnableLostFocusSelectedState="True"
|
|
ShowGroupPanel="False"
|
|
Width="800" Height="500">
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="CellEditEnded">
|
|
<i:InvokeCommandAction Command="{Binding EditEndCmd}"
|
|
CommandParameter="{Binding EventArgs}"/>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
<telerik:RadGridView.Columns>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Index}" IsReadOnly="True" Header="序号">
|
|
<telerik:GridViewDataColumn.CellStyle>
|
|
<Style TargetType="{x:Type telerik:GridViewCell}">
|
|
<Setter Property="Background" Value="#5d6b99" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Style>
|
|
</telerik:GridViewDataColumn.CellStyle>
|
|
|
|
</telerik:GridViewDataColumn>
|
|
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsChecked}" Header="选择" EditTriggers="CellClick,CurrentCellClick"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding TagNumber}" Header="电缆位号"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding PreAssignIOType}" Header="预分配的信号类型"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CableClass}" Header="是否为母线"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding ToPanel_TagNumber}" Header="预分配的系统柜" Width="*"/>
|
|
</telerik:RadGridView.Columns>
|
|
|
|
</telerik:RadGridView>
|
|
|
|
</StackPanel>
|
|
<Grid Grid.Row="1">
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
|
<telerik:RadButton Width="80" Margin="0 0 10 6" HorizontalAlignment="Right" Content="全选"
|
|
Command="{Binding ButtonCommand}" CommandParameter="{Binding Content, RelativeSource={RelativeSource Self}}" />
|
|
<telerik:RadButton Width="80" Margin="0 0 0 6" HorizontalAlignment="Right" Content="清空"
|
|
Command="{Binding ButtonCommand}" CommandParameter="{Binding Content, RelativeSource={RelativeSource Self}}" />
|
|
</StackPanel>
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
<telerik:RadButton Width="80" Margin="0 0 0 6" HorizontalAlignment="Right" Content="确定"
|
|
Command="{Binding OKCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}" />
|
|
<telerik:RadButton Width="80" Margin="10 0 0 6" HorizontalAlignment="Right" Content="取消"
|
|
Command="{Binding CloseCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
</UserControl>
|