1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <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="CenterScreen"
- ResizeMode="NoResize"
- Height="587" Width="600">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="80"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Margin="5,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Height="30" >
- <Label Content="需建模的设备标记码:"></Label>
- <Button Width="120" Height="25" Background="White" Foreground="Black" Content="从剪切板粘贴"
- HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center"
- Command="{Binding Path=Commands.PasteTabCode}"
- ></Button>
- </Grid>
- <Grid Grid.Row="1">
- <TextBox Text="{Binding Path=TabCode,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
- <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="14"/>
- <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="5,0">
- <Label Content="当前打开的模型文件:" Foreground="DarkGray" ></Label>
- <TextBlock Margin="5,15,0,0" Foreground="Black"
- Text="{Binding Path=ModelFilePath}"
- VerticalAlignment="Center" TextWrapping="WrapWithOverflow" ></TextBlock>
- </Grid>
- <Grid Grid.Row="2" Background="LightGray">
- <Button Width="120" Height="25" Background="White" Foreground="Black" Content="重新输入"
- HorizontalAlignment="Right" Margin="0,0,115,0" VerticalAlignment="Center"
- Command="{Binding Path=Commands.ClearTabCode}"
- ></Button>
- <Button Width="100" Height="25" Background="Black" Foreground="White" Content="下一步"
- HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center"
- Command="{Binding Path=Commands.Execute}"
- CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}"
- ></Button>
- </Grid>
- </Grid>
- </Window>
|