|
@@ -6,7 +6,7 @@
|
|
xmlns:local="clr-namespace:Saga.PlugIn.ModelCheck"
|
|
xmlns:local="clr-namespace:Saga.PlugIn.ModelCheck"
|
|
xmlns:gif="https://github.com/XamlAnimatedGif/XamlAnimatedGif"
|
|
xmlns:gif="https://github.com/XamlAnimatedGif/XamlAnimatedGif"
|
|
mc:Ignorable="d" Title="立管检查" WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d" Title="立管检查" WindowStartupLocation="CenterScreen"
|
|
- ResizeMode="NoResize" SizeToContent="WidthAndHeight"
|
|
|
|
|
|
+ ResizeMode="NoResize" SizeToContent="Height"
|
|
Height="Auto" Width="600">
|
|
Height="Auto" Width="600">
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
<local:ItemImageVisibleConverter x:Key="ItemImageEqualVisibleConverter" IsEqualCollapsed="True"></local:ItemImageVisibleConverter>
|
|
<local:ItemImageVisibleConverter x:Key="ItemImageEqualVisibleConverter" IsEqualCollapsed="True"></local:ItemImageVisibleConverter>
|
|
@@ -37,15 +37,65 @@
|
|
<Image Grid.Row="1" Grid.Column="0"
|
|
<Image Grid.Row="1" Grid.Column="0"
|
|
Source="../Image/上一层.png"></Image>
|
|
Source="../Image/上一层.png"></Image>
|
|
<TextBox Grid.Row="1" Grid.Column="1" Name="TxtUpPath" IsReadOnly="True" Margin="0,0,6,0"
|
|
<TextBox Grid.Row="1" Grid.Column="1" Name="TxtUpPath" IsReadOnly="True" Margin="0,0,6,0"
|
|
- VerticalContentAlignment="Center"
|
|
|
|
- Text="{Binding Path=UpFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"></TextBox>
|
|
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Text="{Binding Path=UpFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}">
|
|
|
|
+ <TextBox.Resources>
|
|
|
|
+ <VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left" AlignmentY="Center">
|
|
|
|
+ <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"/>
|
|
|
|
+ <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>
|
|
<Button Grid.Row="1" Grid.Column="2" Click="BtnSelectFileUp_OnClick" Content="选择"
|
|
<Button Grid.Row="1" Grid.Column="2" Click="BtnSelectFileUp_OnClick" Content="选择"
|
|
></Button>
|
|
></Button>
|
|
<Image Grid.Row="3" Grid.Column="0"
|
|
<Image Grid.Row="3" Grid.Column="0"
|
|
Source="../Image/下一层.png"></Image>
|
|
Source="../Image/下一层.png"></Image>
|
|
<TextBox Grid.Row="3" Grid.Column="1" Name="TxtDownPath" IsReadOnly="True" Margin="0,0,6,0"
|
|
<TextBox Grid.Row="3" Grid.Column="1" Name="TxtDownPath" IsReadOnly="True" Margin="0,0,6,0"
|
|
VerticalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
- Text="{Binding Path=DownFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"></TextBox>
|
|
|
|
|
|
+ Text="{Binding Path=DownFilePath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}">
|
|
|
|
+ <TextBox.Resources>
|
|
|
|
+ <VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.3" Stretch="None" AlignmentX="Left" AlignmentY="Center">
|
|
|
|
+ <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"/>
|
|
|
|
+ <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>
|
|
<Button Grid.Row="3" Grid.Column="2" Click="BtnSelectFileDown_OnClick" Content="选择"
|
|
<Button Grid.Row="3" Grid.Column="2" Click="BtnSelectFileDown_OnClick" Content="选择"
|
|
></Button>
|
|
></Button>
|
|
</Grid>
|
|
</Grid>
|
|
@@ -118,14 +168,14 @@
|
|
Converter={StaticResource ItemImageUnEqualVisibleConverter},
|
|
Converter={StaticResource ItemImageUnEqualVisibleConverter},
|
|
ConverterParameter={x:Static local:ModelCheckState.Ending}}">
|
|
ConverterParameter={x:Static local:ModelCheckState.Ending}}">
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
- <RowDefinition Height="30"></RowDefinition>
|
|
|
|
|
|
+ <RowDefinition Height="24"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="43"></RowDefinition>
|
|
<RowDefinition Height="43"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0" Margin="10,0">
|
|
<Grid Grid.Row="0" Margin="10,0">
|
|
<Label Content="当前校验结果:" VerticalAlignment="Center" Foreground="LightGray"></Label>
|
|
<Label Content="当前校验结果:" VerticalAlignment="Center" Foreground="LightGray"></Label>
|
|
</Grid>
|
|
</Grid>
|
|
- <Grid Grid.Row="1" Margin="10,0">
|
|
|
|
|
|
+ <Grid Grid.Row="1" Margin="16,0">
|
|
<TextBlock Text="{Binding Path=SavePath}"
|
|
<TextBlock Text="{Binding Path=SavePath}"
|
|
VerticalAlignment="Center"></TextBlock>
|
|
VerticalAlignment="Center"></TextBlock>
|
|
</Grid>
|
|
</Grid>
|