143 lines
5.5 KiB
Plaintext
143 lines
5.5 KiB
Plaintext
![]() |
<UserControl
|
||
|
x:Class="SWS.Electrical.Views.DialogAutoArrangeLayout"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:CustomControl="clr-namespace:SWS.CustomControl;assembly=SWS.CustomControl"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
xmlns:local="clr-namespace:SWS.Electrical.Views"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||
|
Width="500"
|
||
|
Height="400"
|
||
|
mc:Ignorable="d">
|
||
|
<prism:Dialog.WindowStyle>
|
||
|
<Style TargetType="Window">
|
||
|
<Setter Property="Width" Value="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Width}" />
|
||
|
<Setter Property="Height" Value="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Height}" />
|
||
|
|
||
|
<Setter Property="WindowState" Value="Normal" />
|
||
|
<Setter Property="WindowStyle" Value="None" />
|
||
|
<Setter Property="ResizeMode" Value="NoResize" />
|
||
|
<Setter Property="Visibility" Value="{Binding isShow}" />
|
||
|
</Style>
|
||
|
</prism:Dialog.WindowStyle>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="auto" />
|
||
|
<RowDefinition Height="auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="0.4*" />
|
||
|
<ColumnDefinition Width="0.6*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<CustomControl:customWindowTitleBar
|
||
|
x:Name="titleBar"
|
||
|
Grid.Row="0"
|
||
|
Grid.ColumnSpan="2" />
|
||
|
<telerik:RadGridView
|
||
|
Grid.Row="1"
|
||
|
Grid.Column="0"
|
||
|
MaxHeight="360"
|
||
|
telerik:StyleManager.Theme="Office_Blue"
|
||
|
AutoGenerateColumns="False"
|
||
|
IsFilteringAllowed="False"
|
||
|
IsReadOnly="False"
|
||
|
ItemsSource="{Binding listDrawings, Mode=TwoWay}"
|
||
|
RowIndicatorVisibility="Collapsed"
|
||
|
ScrollMode="RealTime"
|
||
|
SelectionMode="Single"
|
||
|
ShowGroupPanel="False">
|
||
|
<telerik:RadGridView.Columns>
|
||
|
<telerik:GridViewCheckBoxColumn
|
||
|
Width="30"
|
||
|
DataMemberBinding="{Binding isChecked}"
|
||
|
Header=""
|
||
|
IsVisible="True" />
|
||
|
<telerik:GridViewDataColumn
|
||
|
Width="*"
|
||
|
DataMemberBinding="{Binding DrawingFileName}"
|
||
|
Header="布置图"
|
||
|
IsFilteringDeferred="True" />
|
||
|
</telerik:RadGridView.Columns>
|
||
|
</telerik:RadGridView>
|
||
|
<Grid Grid.Row="1" Grid.Column="1">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="50" />
|
||
|
<RowDefinition Height="50" />
|
||
|
<RowDefinition Height="50" />
|
||
|
<RowDefinition Height="50" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<StackPanel
|
||
|
Grid.Row="0"
|
||
|
Height="30"
|
||
|
Margin="30,0,0,0"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Center"
|
||
|
Orientation="Horizontal">
|
||
|
<TextBlock
|
||
|
Width="auto"
|
||
|
FontSize="18"
|
||
|
Text="范围:" />
|
||
|
<telerik:RadComboBox
|
||
|
Grid.Column="1"
|
||
|
Width="160"
|
||
|
Height="25"
|
||
|
DisplayMemberPath="Key"
|
||
|
ItemsSource="{Binding listRange}"
|
||
|
SelectedItem="{Binding selectRange, Mode=TwoWay}" />
|
||
|
</StackPanel>
|
||
|
<StackPanel
|
||
|
Grid.Row="1"
|
||
|
Height="30"
|
||
|
Margin="30,0,0,0"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Center"
|
||
|
Orientation="Horizontal">
|
||
|
<TextBlock
|
||
|
Width="auto"
|
||
|
FontSize="18"
|
||
|
Text="判断:" />
|
||
|
<telerik:RadComboBox
|
||
|
Grid.Column="1"
|
||
|
Width="160"
|
||
|
Height="25"
|
||
|
DisplayMemberPath="Key"
|
||
|
ItemsSource="{Binding listOperator}"
|
||
|
SelectedItem="{Binding selectOperator, Mode=TwoWay}" />
|
||
|
</StackPanel>
|
||
|
<StackPanel
|
||
|
Grid.Row="2"
|
||
|
Height="30"
|
||
|
Margin="30,0,0,0"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Center"
|
||
|
Orientation="Horizontal">
|
||
|
<TextBlock
|
||
|
Width="auto"
|
||
|
FontSize="18"
|
||
|
Text=" 值:" />
|
||
|
<TextBox
|
||
|
Width="170"
|
||
|
FontSize="18"
|
||
|
Text="{Binding inputValue}" />
|
||
|
</StackPanel>
|
||
|
<StackPanel
|
||
|
Grid.Row="3"
|
||
|
Height="30"
|
||
|
Margin="30,0,0,0"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Center"
|
||
|
Orientation="Horizontal">
|
||
|
<Button
|
||
|
Width="140"
|
||
|
Margin="60,0,0,0"
|
||
|
Command="{Binding Command_StartDrawing}"
|
||
|
Content="开始自动绘图"
|
||
|
FontSize="18" />
|
||
|
</StackPanel>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</UserControl>
|