117 lines
7.0 KiB
XML
117 lines
7.0 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:CustomControl="clr-namespace:SWS.CustomControl;assembly=SWS.CustomControl"
|
|
Width="1000" Height="800"
|
|
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>
|
|
</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 Content="是" GroupName="OptionGroup1" Margin="5"/>
|
|
<RadioButton x:Name="RadioButton1" Content="否" GroupName="OptionGroup1" Margin="5"/>
|
|
<TextBlock Text="通讯格式" Margin="5"/>
|
|
<ComboBox />
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Margin="5,0,5,5"
|
|
VerticalAlignment="Bottom"
|
|
Header="信号类型">
|
|
<StackPanel Orientation="Horizontal">
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}" Content="Digital" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}" Content="4-20mA" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}" Content="-10V-10V" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}" Content="PT100" GroupName="OptionGroup2" Margin="5"/>
|
|
<RadioButton IsEnabled="{Binding IsChecked,ElementName=RadioButton1}" Content="Pulse" GroupName="OptionGroup2" Margin="5"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
<GroupBox Margin="5,0,5,5"
|
|
Grid.Row="2"
|
|
VerticalAlignment="Bottom"
|
|
Header="电缆配置信息">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel>
|
|
<Border BorderThickness="0 0 0 1" Margin="10,0,0,0">
|
|
<TextBlock Text="选择系统柜" Foreground="Black" />
|
|
</Border>
|
|
|
|
<!-- 左侧树形结构 -->
|
|
<Border>
|
|
<telerik:RadTreeView x:Name="treeView1"
|
|
Height="660"
|
|
Background="White"
|
|
IsLineEnabled="True"
|
|
ItemsSource="{Binding PanelTreels}"
|
|
SelectedItem="{Binding SelectedTreeNode,Mode=TwoWay}"
|
|
Margin="5"
|
|
telerik:StyleManager.Theme="Office_Blue"
|
|
AllowDrop="True"
|
|
AutoScrollToSelectedItem="True"
|
|
IsVirtualizing="True"
|
|
>
|
|
<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>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
</telerik:RadBusyIndicator>
|
|
</UserControl>
|