|
|
|
|
<Window
|
|
|
|
|
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:local="clr-namespace:Kingo.Plugin.EngineEditor.View"
|
|
|
|
|
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
|
|
|
|
|
xmlns:KUI="clr-namespace:KUI;assembly=KUI" xmlns:btn="clr-namespace:KUI.Button;assembly=KUI" x:Class="Kingo.Plugin.EngineEditor.View.FrmInterData2"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
WindowStyle="None" AllowsTransparency="True" Topmost="True" ShowInTaskbar="False" Background="Transparent" OpacityMask="White" ResizeMode="NoResize"
|
|
|
|
|
Width="300">
|
|
|
|
|
<Grid Background="Transparent">
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<LinearGradientBrush x:Key="background" EndPoint="0.5,1" StartPoint="0.5,0">
|
|
|
|
|
<GradientStop Color="#FF49CB5F" Offset="1"/>
|
|
|
|
|
<GradientStop Color="#FF49CB5F"/>
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
<Style x:Key="TabControlStyle1" TargetType="{x:Type TabControl}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type TabControl}">
|
|
|
|
|
<Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition x:Name="RowDefinition0" Height="50"/>
|
|
|
|
|
<RowDefinition x:Name="RowDefinition1"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0"
|
|
|
|
|
CornerRadius="7,7,0,0"
|
|
|
|
|
Background="Transparent">
|
|
|
|
|
<TabPanel x:Name="HeaderPanel"
|
|
|
|
|
IsItemsHost="true"
|
|
|
|
|
Margin="2,2,2,0"
|
|
|
|
|
KeyboardNavigation.TabIndex="1"
|
|
|
|
|
Panel.ZIndex="1"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="Transparent"/>
|
|
|
|
|
<SolidColorBrush x:Key="ButtonNormalBackground" Color="Transparent"/>
|
|
|
|
|
<SolidColorBrush x:Key="TabItemHotBackground" Color="#FF285291"/>
|
|
|
|
|
<SolidColorBrush x:Key="TabItemSelectedBackground" Color="#FF285291"/>
|
|
|
|
|
<SolidColorBrush x:Key="TabItemHotBorderBrush" Color="Transparent"/>
|
|
|
|
|
<SolidColorBrush x:Key="TabItemDisabledBackground" Color="Transparent"/>
|
|
|
|
|
<SolidColorBrush x:Key="TabItemDisabledBorderBrush" Color="Transparent"/>
|
|
|
|
|
<Style TargetType="{x:Type TabItem}">
|
|
|
|
|
<Setter Property="FontSize" Value="14"/>
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
<Setter Property="Padding" Value="6,1,6,1"/>
|
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
|
|
|
|
|
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
|
|
|
<Grid SnapsToDevicePixels="true" Margin="5,0" Height="50">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" Height="30" BorderThickness="1,1,1,0" Background="{TemplateBinding Background}" Padding="14,3" CornerRadius="13" Margin="0">
|
|
|
|
|
<ContentPresenter x:Name="Content" ContentSource="Header" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Path x:Name="path" Visibility="Collapsed" Stroke="Black" StrokeThickness="0" Fill="White" Canvas.Top="90" Canvas.Left="10" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" Data="M8,0 L0,8 L16,8 z"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
|
<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemHotBackground}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsSelected" Value="true">
|
|
|
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
<Setter Property="Visibility" TargetName="path" Value="Visible" />
|
|
|
|
|
<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemSelectedBackground}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<MultiTrigger>
|
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
|
<Condition Property="IsSelected" Value="false"/>
|
|
|
|
|
<Condition Property="IsMouseOver" Value="true"/>
|
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
|
<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
|
|
|
|
|
</MultiTrigger>
|
|
|
|
|
<Trigger Property="TabStripPlacement" Value="Bottom">
|
|
|
|
|
<Setter Property="BorderThickness" TargetName="Bd" Value="1,0,1,1"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="TabStripPlacement" Value="Left">
|
|
|
|
|
<Setter Property="BorderThickness" TargetName="Bd" Value="1,1,0,1"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="TabStripPlacement" Value="Right">
|
|
|
|
|
<Setter Property="BorderThickness" TargetName="Bd" Value="0,1,1,1"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<MultiTrigger>
|
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
|
<Condition Property="TabStripPlacement" Value="Top"/>
|
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
|
<Setter Property="Margin" Value="-2,-2,-2,-1"/>
|
|
|
|
|
<Setter Property="Margin" TargetName="Content" Value="0,0,0,1"/>
|
|
|
|
|
</MultiTrigger>
|
|
|
|
|
<MultiTrigger>
|
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
|
<Condition Property="TabStripPlacement" Value="Bottom"/>
|
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
|
<Setter Property="Margin" Value="-2,-1,-2,-2"/>
|
|
|
|
|
<Setter Property="Margin" TargetName="Content" Value="0,1,0,0"/>
|
|
|
|
|
</MultiTrigger>
|
|
|
|
|
<MultiTrigger>
|
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
|
<Condition Property="TabStripPlacement" Value="Left"/>
|
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
|
<Setter Property="Margin" Value="-2,-2,-1,-2"/>
|
|
|
|
|
<Setter Property="Margin" TargetName="Content" Value="0,0,1,0"/>
|
|
|
|
|
</MultiTrigger>
|
|
|
|
|
<MultiTrigger>
|
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
|
<Condition Property="IsSelected" Value="true"/>
|
|
|
|
|
<Condition Property="TabStripPlacement" Value="Right"/>
|
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
|
<Setter Property="Margin" Value="-1,-2,-2,-2"/>
|
|
|
|
|
<Setter Property="Margin" TargetName="Content" Value="1,0,0,0"/>
|
|
|
|
|
</MultiTrigger>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
|
|
|
<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemDisabledBackground}"/>
|
|
|
|
|
<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemDisabledBorderBrush}"/>
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
|
|
|
|
<Setter Property="Width" Value="245"/>
|
|
|
|
|
<Setter Property="Height" Value="30" />
|
|
|
|
|
<Setter Property="Background" Value="#7Ad2e7f4" />
|
|
|
|
|
<Setter Property="Foreground" Value="#FF217cb5"/>
|
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
|
<Setter Property="FontFamily" Value="宋体" />
|
|
|
|
|
<Setter Property="FontWeight" Value="Bold" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="Padding" Value="25,8,8,8"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<Canvas Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
|
|
|
|
|
Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
|
|
|
|
<Canvas x:Name="canvNormal" Visibility="Visible"
|
|
|
|
|
Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
|
|
|
|
|
Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Canvas.Right="0">
|
|
|
|
|
<Rectangle Width="15" Height="35" Fill="#FFc7ebff" Canvas.Right="0"/>
|
|
|
|
|
<Line X1="0" Y1="0" X2="0" Y2="15" Stroke="#297eb4" StrokeThickness="3"
|
|
|
|
|
Margin="6 10" StrokeDashArray="1" Canvas.Right="0"/>
|
|
|
|
|
</Canvas>
|
|
|
|
|
<Canvas x:Name="canvChecked" Visibility="Hidden"
|
|
|
|
|
Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
|
|
|
|
|
Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Canvas.Left="0">
|
|
|
|
|
<Path Data="M13.494,10.697l-3.497-3.6l-3.497,3.6L6.494,8.328l3.503-3.631l3.48,3.592L13.494,10.697z" Fill="#297eb4" Canvas.Left="5" Canvas.Top="5"/>
|
|
|
|
|
<Path Data="M13.494,10.697l-3.497-3.6l-3.497,3.6L6.494,8.328l3.503-3.631l3.48,3.592L13.494,10.697z" Fill="#297eb4" Canvas.Left="5" Canvas.Top="10"/>
|
|
|
|
|
<Rectangle Width="{TemplateBinding Width}" Height="1" Canvas.Bottom="0" Fill="#FFbacfda" />
|
|
|
|
|
</Canvas>
|
|
|
|
|
|
|
|
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
RecognizesAccessKey="True"
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
|
|
|
VerticalAlignment="Stretch"/>
|
|
|
|
|
</Canvas>
|
|
|
|
|
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsPressed" Value="true">
|
|
|
|
|
<Setter Property="Background" Value="#FFd2e7f4" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="true">
|
|
|
|
|
<Setter Property="Visibility" TargetName="canvChecked" Value="Visible" />
|
|
|
|
|
<Setter Property="Visibility" TargetName="canvNormal" Value="Hidden" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Height="50" Cursor="Hand" VerticalAlignment="Top" HorizontalAlignment="Right">
|
|
|
|
|
<Rectangle HorizontalAlignment="Left" Grid.ColumnSpan="2" Height="40" Stroke="#FF128BED" VerticalAlignment="Center" Width="170" RadiusX="20" RadiusY="20">
|
|
|
|
|
<Rectangle.Fill>
|
|
|
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
|
|
|
<GradientStop Color="White" Offset="0"/>
|
|
|
|
|
<!--<GradientStop Color="White" Offset="0.496"/>-->
|
|
|
|
|
<GradientStop Color="AliceBlue" Offset="0.4"/>
|
|
|
|
|
<GradientStop Color="AliceBlue" Offset="1"/>
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Rectangle.Fill>
|
|
|
|
|
</Rectangle>
|
|
|
|
|
<Label x:Name="labMsg" Content="{Binding lableTitle,Mode=TwoWay}" FontFamily="微软雅黑" FontSize="13" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Margin="60,0,0,0" />
|
|
|
|
|
<Ellipse HorizontalAlignment="Left" Height="50" Stroke="#FF128BED" VerticalAlignment="Center" Width="50">
|
|
|
|
|
<Ellipse.Fill>
|
|
|
|
|
<RadialGradientBrush>
|
|
|
|
|
<GradientStop Color="AliceBlue" Offset="1"/>
|
|
|
|
|
<GradientStop Color="White"/>
|
|
|
|
|
</RadialGradientBrush>
|
|
|
|
|
</Ellipse.Fill>
|
|
|
|
|
</Ellipse>
|
|
|
|
|
<Image Grid.Column="0" Height="45" Width="45" HorizontalAlignment="Left" Margin="3,0" VerticalAlignment="Center" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/maxlogo.png" />
|
|
|
|
|
<Button Opacity="0.1" PreviewMouseLeftButtonDown="Button_PreviewMouseLeftButtonDown" PreviewMouseDoubleClick="Button_PreviewMouseDoubleClick"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Button x:Name="btnClose" Height="18" Width="18" Click="btnClose_Click" Margin="5" HorizontalAlignment="Right">
|
|
|
|
|
<Button.Resources>
|
|
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
|
|
<Setter Property="Opacity" Value="0.7"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate>
|
|
|
|
|
<Image x:Name="img" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/close.png" />
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True" >
|
|
|
|
|
<Setter Property="Opacity" Value="1" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Button.Resources>
|
|
|
|
|
</Button>
|
|
|
|
|
<Grid x:Name="popContent" Margin="0,5" Width="300" Grid.Row="1" Visibility="Visible">
|
|
|
|
|
<Grid.Background>
|
|
|
|
|
<ImageBrush ImageSource="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/bg.png" Stretch="None" AlignmentY="Top"/>
|
|
|
|
|
</Grid.Background>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="35" />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="35" />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
<ColumnDefinition Width="25" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Image Grid.Column="0" Height="28" Width="28" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,3" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/minlogo.png"/>
|
|
|
|
|
<Label Grid.Column="1" Content="智能检查助手" VerticalContentAlignment="Center" Foreground="White" FontSize="14" />
|
|
|
|
|
<Button x:Name="btnClosePage" Height="18" Width="18" Click="btnClosePage_Click" Margin="5,0" Grid.Column="2" HorizontalAlignment="Right">
|
|
|
|
|
<Button.Resources>
|
|
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
|
|
|
<Setter Property="Opacity" Value="0.8"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate>
|
|
|
|
|
<Image x:Name="img" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/closePage.png" />
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True" >
|
|
|
|
|
<Setter Property="Opacity" Value="1" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Button.Resources>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
<TabControl Margin="0" Grid.Row="1" Padding="5" BorderThickness="0" Background="AliceBlue">
|
|
|
|
|
<TabItem Header="常规检查">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="80" />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<Image x:Name="imgMessageState" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/noerror.png" Width="36" Height="36" Margin="10"/>
|
|
|
|
|
<Label x:Name="labMessage" Content="概要信息!" VerticalContentAlignment="Center" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
|
|
|
|
|
<StackPanel x:Name="spResult" Background="White" Orientation="Vertical">
|
|
|
|
|
<StackPanel.Resources>
|
|
|
|
|
<Style x:Key="togBtnStyle" TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
|
|
|
|
<Border Background="White" BorderThickness="0,0,0,1" BorderBrush="#CCC">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="30" />
|
|
|
|
|
<ColumnDefinition Width="20" />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
<ColumnDefinition Width="30" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Image x:Name="imgState" Height="20" Width="20" Margin="0,2,0,0" />
|
|
|
|
|
<Image x:Name="imgIcon" Grid.Column="1" HorizontalAlignment="Left" Height="16" Width="20" Margin="0,2,0,0" Source="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/Polygon2.png" />
|
|
|
|
|
<ContentPresenter Grid.Column="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
|
|
|
|
<Setter TargetName="imgState" Property="Source" Value="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/less.png" />
|
|
|
|
|
<Setter TargetName="imgIcon" Property="Source" Value="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/Polygon.png" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsChecked" Value="False">
|
|
|
|
|
<Setter TargetName="imgState" Property="Source" Value="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/more_unfold.png" />
|
|
|
|
|
<Setter TargetName="imgIcon" Property="Source" Value="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/Polygon2.png" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="imgIcon" Property="Source" Value="pack://application:,,,/Kingo.Plugin.EngineEditor;component/Resources/DataCheck/Polygon.png" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="ExpanderStyle" TargetType="{x:Type Expander}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Expander}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="30" />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<ToggleButton x:Name="HeaderSite" Style="{DynamicResource togBtnStyle}" Content="{TemplateBinding Header}"
|
|
|
|
|
IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
|
|
|
|
|
<ContentPresenter x:Name="content" Grid.Row="1" Margin="10 0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsExpanded" Value="True">
|
|
|
|
|
<Setter TargetName="content" Property="Visibility" Value="Visible" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="IsExpanded" Value="False">
|
|
|
|
|
<Setter TargetName="content" Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</StackPanel.Resources>
|
|
|
|
|
<Expander Header="图斑压盖情况" Style="{DynamicResource ExpanderStyle}" Foreground="Black" IsExpanded="True">
|
|
|
|
|
<KUI:PagingDataGrid Total="{Binding iGeoOverRecordTotal}" IsShowPaging="False" ColumnHeaderHeight="20" FontWeight="Normal" RowHeight="25" ItemsSource="{Binding GeoOverTable,Mode=TwoWay}" AutoGenerateColumns="False" CanUserAddRows="False">
|
|
|
|
|
<KUI:PagingDataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Header="OID" Binding="{Binding OBJECTID}" />
|
|
|
|
|
<DataGridTextColumn Header="地类编码" Binding="{Binding DLBM}" />
|
|
|
|
|
<DataGridTextColumn Header="地类名称" Binding="{Binding DLMC}" />
|
|
|
|
|
<DataGridTextColumn Header="面积" Binding="{Binding TBMJ}" />
|
|
|
|
|
</KUI:PagingDataGrid.Columns>
|
|
|
|
|
</KUI:PagingDataGrid>
|
|
|
|
|
</Expander>
|
|
|
|
|
<Expander Header="图形规范性" Style="{DynamicResource ExpanderStyle}" Foreground="Black" IsExpanded="True">
|
|
|
|
|
<KUI:PagingDataGrid Total="{Binding iCheckRecordTotal}" IsShowPaging="False" ColumnHeaderHeight="20" FontWeight="Normal" RowHeight="25" ItemsSource="{Binding CheckTable,Mode=TwoWay}" AutoGenerateColumns="False" CanUserAddRows="False">
|
|
|
|
|
<KUI:PagingDataGrid.Columns>
|
|
|
|
|
<!--<DataGridTextColumn Header="检查项" Binding="{Binding OID}" />
|
|
|
|
|
<DataGridTextColumn Header="实际值" Binding="{Binding DLBM}" />
|
|
|
|
|
<DataGridTextColumn Header="参考值" Binding="{Binding DLBM}" />
|
|
|
|
|
<DataGridTextColumn Header="是否通过" Binding="{Binding DLMC}" />-->
|
|
|
|
|
<DataGridTextColumn Header="检查项" Binding="{Binding 检查项}" />
|
|
|
|
|
<DataGridTextColumn Header="实际值" Binding="{Binding 值}" />
|
|
|
|
|
<DataGridTextColumn Header="参考值" Binding="{Binding 值}" />
|
|
|
|
|
<DataGridTextColumn Header="是否通过" Binding="{Binding 是否通过}" />
|
|
|
|
|
</KUI:PagingDataGrid.Columns>
|
|
|
|
|
</KUI:PagingDataGrid>
|
|
|
|
|
</Expander>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
<StackPanel Grid.Row="2" Margin="0" Background="AliceBlue" Orientation="Horizontal" HorizontalAlignment="Stretch">
|
|
|
|
|
<btn:KImgButton Content="一键修复" Height="35" Margin="100,0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</TabItem>
|
|
|
|
|
</TabControl>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Window>
|