年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
12 KiB

6 months ago
<Window x:Class="Kingo.Plugin.DataCheck.Views.FrmFeatureDataCheck"
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:KUI="clr-namespace:KUI;assembly=KUI" xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:local="clr-namespace:Kingo.Plugin.DataCheck.Views"
xmlns:win="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
mc:Ignorable="d" x:Name="win"
WindowStyle="None" AllowsTransparency="True" Topmost="True" ShowInTaskbar="False" Background="Transparent" OpacityMask="White" ResizeMode="NoResize"
Width="80" Height="80" MouseLeftButtonDown="Window_MouseLeftButtonDown" MouseDoubleClick="Window_MouseDoubleClick" MouseMove="win_MouseMove">
<Window.Resources>
<Storyboard x:Key="showDW2">
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="0.2" To="0.5" Duration="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="0.2" To="0.5" Duration="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="0.5" To="1" Duration="0:0:0.04" BeginTime="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="0.5" To="1" Duration="0:0:0.04" BeginTime="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="1" To="1.2" Duration="0:0:0.04" BeginTime="0:0:0.08" AutoReverse="True">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="1" To="1.2" Duration="0:0:0.04" BeginTime="0:0:0.08" AutoReverse="True">
</DoubleAnimation>
</Storyboard>
<Storyboard x:Key="closeDW2">
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="1" To="1.2" Duration="0:0:0.04" AutoReverse="True">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="1" To="1.2" Duration="0:0:0.04" AutoReverse="True">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="1" To="0.5" Duration="0:0:0.04" BeginTime="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="1" To="0.5" Duration="0:0:0.04" BeginTime="0:0:0.04">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="0.5" To="0.0" Duration="0:0:0.04" BeginTime="0:0:0.08" >
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="Canvas1"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="0.5" To="0.0" Duration="0:0:0.04" BeginTime="0:0:0.08">
</DoubleAnimation>
</Storyboard>
<Storyboard x:Key="loading" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="cavLoading" Storyboard.TargetProperty="RenderTransform.Angle">
<EasingDoubleKeyFrame KeyTime="00:00:0.2" Value="60"/>
<EasingDoubleKeyFrame KeyTime="00:00:0.8" Value="300"/>
<EasingDoubleKeyFrame KeyTime="00:00:01" Value="360"/>
</DoubleAnimationUsingKeyFrames>
<!--<DoubleAnimation Storyboard.TargetName="cavLoading"
Storyboard.TargetProperty="RenderTransform.Angle"
From="0" To="60" Duration="0:0:0.2" AutoReverse="True">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="cavLoading"
Storyboard.TargetProperty="RenderTransform.Angle"
From="60" To="300" Duration="0:0:0.4" AutoReverse="True">
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="cavLoading"
Storyboard.TargetProperty="RenderTransform.Angle"
From="300" To="360" Duration="0:0:0.2" BeginTime="0:0:0.04">
</DoubleAnimation>-->
</Storyboard>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding Nodes,Mode=TwoWay}">
<StackPanel Orientation="Horizontal" Height="23" ContextMenu="{Binding cMenu}">
<Image Width="18" Source="{Binding Icon}" Height="18" Margin="0,0,4,0" />
<TextBlock Name="txtBox" Text="{Binding Name}" ToolTip="{Binding Tip}" FontSize="13" VerticalAlignment="Center">
</TextBlock>
</StackPanel>
<HierarchicalDataTemplate.Triggers>
<DataTrigger Binding="{Binding IsOpenEdit,Mode=TwoWay}" Value="true">
<Setter TargetName="txtBox" Property="Foreground" Value="Red" />
</DataTrigger>
</HierarchicalDataTemplate.Triggers>
</HierarchicalDataTemplate>
</Window.Resources>
<Grid Margin="0,0" Canvas.Top="0" Panel.ZIndex="2" Visibility="Visible" x:Name="detailGrid">
<Canvas x:Name="Canvas1" Visibility="Collapsed">
<Canvas.RenderTransform>
<TransformGroup>
<ScaleTransform CenterX="250" ScaleX="1" ScaleY="1" CenterY="300" />
</TransformGroup>
</Canvas.RenderTransform>
<Grid x:Name="popContent" Width="220" Canvas.Top="16" Canvas.Right="15">
<Grid.Background>
<ImageBrush ImageSource="/Kingo.Plugin.DataCheck;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="/Kingo.Plugin.DataCheck;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="/Kingo.Plugin.DataCheck;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>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="32" />
<RowDefinition Height="233"/>
<!--<RowDefinition Height="50" />-->
</Grid.RowDefinitions>
<TextBox KUI:ControlAttachProperty.Watermark="输入图斑OID进行筛选" AcceptsReturn="True" />
<TreeView Grid.Row="1" x:Name="tvTypes" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemTemplate="{StaticResource ItemNode}" >
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"></Setter>
<Setter Property="IsSelected" Value="{Binding Checked}"></Setter>
<!--<EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="tvTypes_PreviewMouseRightButtonDown"/>-->
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<!--</StackPanel>-->
<!--<StackPanel Grid.Row="2" Margin="0" Background="AliceBlue" Orientation="Horizontal" HorizontalAlignment="Stretch">
<btn:KImgButton Content="一键修复" Click="KImgButton_Click" Height="35" Margin="100,0"/>
</StackPanel>-->
</Grid>
</Grid>
</Canvas>
<Canvas Panel.ZIndex="0" HorizontalAlignment="Right">
<Button Height="75" Width="75" Canvas.Right="0" Canvas.Top="0" Panel.ZIndex="0" Click="Button_Click">
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid VerticalAlignment="Stretch">
<Ellipse HorizontalAlignment="Center" Height="70" Stroke="#FF58D664" VerticalAlignment="Center" Width="70" StrokeThickness="4">
<Ellipse.Fill>
<RadialGradientBrush>
<!--<GradientStop Color="AliceBlue" Offset="1"/>-->
<GradientStop Color="#FFEAE9E7"/>
</RadialGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Canvas x:Name="cavLoading" Visibility="Collapsed" Width="58" Height="58">
<Canvas.RenderTransform>
<RotateTransform Angle="0" CenterX="29" CenterY="29" />
</Canvas.RenderTransform>
<Ellipse x:Name="C0" Width="12" Height="12" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="#FF58D664" Opacity="1.0">
</Ellipse>
</Canvas>
<!--<Grid MouseEnter="Grid_MouseEnter" Margin="12" MouseLeftButtonDown="Grid_MouseLeftButtonDown" Background="Red" Opacity="0.01"></Grid>-->
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
</Canvas>
</Grid>
</Window>