123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <Window x:Class="Saga.PlugIn.ModelCheck.WinCreateFacility"
- 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:converter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
- xmlns:local="clr-namespace:Saga.PlugIn.ModelCheck"
- xmlns:createFacility="clr-namespace:Saga.PlugIn.CreateFacility"
- mc:Ignorable="d" Title="待建模设备" WindowStartupLocation="Manual"
- ResizeMode="NoResize"
- Height="550" Width="400">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="80"></RowDefinition>
- <RowDefinition Height="43"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Margin="10,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Height="30" >
- <Label Content="需建模的设备标记码:"></Label>
- <Button Width="82" Height="23" Content="从剪切板粘贴"
- HorizontalAlignment="Right" VerticalAlignment="Center"
- Command="{Binding Path=Commands.PasteTabCode}"
- ></Button>
- </Grid>
- <Grid Grid.Row="1">
- <TextBox Text="{Binding Path=TabCode,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" IsReadOnly="True">
- <TextBox.Resources>
- <VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left" AlignmentY="Top">
- <VisualBrush.Visual>
- <TextBlock FontStyle="Normal" FontSize="14" TextWrapping="Wrap" Width="430" Text='请输入需建模的设备标记码'/>
- </VisualBrush.Visual>
- </VisualBrush>
- </TextBox.Resources>
- <TextBox.Style>
- <Style TargetType="TextBox">
- <Setter Property="FontSize" Value="12"/>
- <Setter Property="Foreground" Value="#FF333333"/>
- <Setter Property="BorderBrush" Value="#8F666666"/>
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="AcceptsReturn" Value="True"/>
- <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
- <Style.Triggers>
- <Trigger Property="Text" Value="{x:Null}">
- <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
- </Trigger>
- <Trigger Property="Text" Value="">
- <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBox.Style>
- </TextBox>
- </Grid>
- <WrapPanel Grid.Row="2">
- <Label Content="该设备所在:"></Label>
- <TextBlock Text="{Binding Path=FacilityLocated}" VerticalAlignment="Center"></TextBlock>
- </WrapPanel>
- </Grid>
- <Grid Grid.Row="1" Margin="10,0">
- <Label Content="当前打开的模型文件:" Foreground="DarkGray" ></Label>
- <TextBlock Margin="8,15,0,0"
- Text="{Binding Path=ModelFilePath}"
- VerticalAlignment="Center" TextWrapping="WrapWithOverflow" ></TextBlock>
- </Grid>
- <Grid Grid.Row="2" Background="#F0F0F0">
- <WrapPanel HorizontalAlignment="Right">
- <Button Width="82" Height="23" Content="重新输入"
- HorizontalAlignment="Right" Margin="0,10,6,10"
- Command="{Binding Path=Commands.ClearTabCode}"
- ></Button>
- <Button Width="82" Height="23" Content="下一步"
- HorizontalAlignment="Right" Margin="0,10,10,10"
- Command="{Binding Path=Commands.Execute}"
- CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}"
- IsDefault="True"></Button>
- </WrapPanel>
-
- </Grid>
- </Grid>
- </Window>
|