108 lines
3.7 KiB
XML
108 lines
3.7 KiB
XML
<UserControl
|
||
x:Class="SWS.Electrical.Views.DialogTest2"
|
||
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="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="60" />
|
||
<RowDefinition Height="60" />
|
||
<RowDefinition Height="60" />
|
||
<RowDefinition Height="60" />
|
||
</Grid.RowDefinitions>
|
||
<CustomControl:customWindowTitleBar x:Name="titleBar" />
|
||
<StackPanel
|
||
Grid.Row="1"
|
||
Height="30"
|
||
Margin="10,0,0,0"
|
||
HorizontalAlignment="Left"
|
||
VerticalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Width="60"
|
||
FontSize="18"
|
||
Text="图纸ID:" />
|
||
<TextBox
|
||
Width="200"
|
||
FontSize="18"
|
||
Text="{Binding dwgID}" />
|
||
<Button
|
||
Width="80"
|
||
Command="{Binding Command_OpenDwg}"
|
||
Content="打开"
|
||
FontSize="18" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="2"
|
||
Height="30"
|
||
Margin="10,0,0,0"
|
||
HorizontalAlignment="Left"
|
||
VerticalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Width="60"
|
||
FontSize="18"
|
||
Text="块图纸:" />
|
||
<TextBox
|
||
Width="200"
|
||
FontSize="18"
|
||
Text="{Binding blockDwg}" />
|
||
<Button
|
||
Width="80"
|
||
Command="{Binding Command_OpenFile}"
|
||
Content="浏览"
|
||
FontSize="18" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="3"
|
||
Height="30"
|
||
Margin="10,0,0,0"
|
||
HorizontalAlignment="Left"
|
||
VerticalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Width="60"
|
||
FontSize="18"
|
||
Text="位号:" />
|
||
<TextBox
|
||
Width="280"
|
||
FontSize="18"
|
||
Text="{Binding tagNumber}" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="4"
|
||
Height="60"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<Button
|
||
Width="100"
|
||
Margin="10"
|
||
Command="{Binding Command_AddBlock}"
|
||
Content="添加块"
|
||
FontSize="18" />
|
||
|
||
</StackPanel>
|
||
</Grid>
|
||
</UserControl>
|