年度变更建库软件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.

125 lines
7.8 KiB

6 months ago
<windows:BaseWindow x:Class="Kingo.PluginServiceInterface.WizardFramework.WizardWindow"
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
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:btn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:local="clr-namespace:Kingo.PluginServiceInterface.WizardFramework"
mc:Ignorable="d" Height="600" Width="800"
d:DesignHeight="450" d:DesignWidth="800" ShowInTaskbar="False"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded" ResizeMode="NoResize"
>
<windows:BaseWindow.Resources>
<Style TargetType="ListBox">
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/>
<EventSetter Event="SelectionChanged" Handler="ListBox_SelectionChanged"/>
</Style>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="3"/>
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Top" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Grid Background="{TemplateBinding Background}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="fillColor2" Storyboard.TargetProperty="Opacity" Duration="0" To=".75"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Rectangle x:Name="fillColor2" Margin="8" Opacity="0" Fill="#88ff56" IsHitTestVisible="False" RadiusX="10" RadiusY="10" />
<ContentPresenter
x:Name="contentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Center"
Margin="{TemplateBinding Padding}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</windows:BaseWindow.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="200"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="105"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Name="top" BorderThickness="0,0,0,0.5" BorderBrush="White" Grid.Row="0" Grid.ColumnSpan="3" >
<StackPanel Name="spTop" >
<Label Name="lblWizardCaption" Margin="10,0,0,0" FontSize="22" FontStyle="Normal" FontWeight="Black" ForceCursor="False"></Label>
<TextBlock Name="txtDescription" TextWrapping="Wrap" Margin="35,0,0,0" FontSize="15"></TextBlock>
</StackPanel>
</Border>
<Border Name="top_right" Grid.Row="0" Grid.Column="3" BorderThickness="0,0,0,0.5" BorderBrush="White">
<Image Source="/Kingo.PluginServiceInterface;component/Resource/Images/top.png"></Image>
</Border>
<Border Name="left" BorderThickness="0,0.5,0,0.5" BorderBrush="#9ec4f7" Grid.Row="1" Grid.Column="0">
<!--<StackPanel>
<Image Source="/FundationCore;component/Images/left.png"></Image>
</StackPanel>-->
<ListBox Name="lstSetpCaption" ItemsSource="{Binding Path=.}">
<ListBox.Background>
<ImageBrush ImageSource="/Kingo.PluginServiceInterface;component/Resource/Images/left.png" />
</ListBox.Background>
<!--<ListBox.ItemContainerStyle>
<Style>
<Setter Property="Control.Padding" Value="0"></Setter>
<Style.Triggers>
<Trigger Property="ListBoxItem.IsSelected" Value="True">
<Setter Property="ListBoxItem.Background" Value="LightBlue"></Setter>
<Setter Property="ListBoxItem.Foreground" Value="Green"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</ListBox.ItemContainerStyle>-->
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Border Margin="5" Width="180" BorderThickness="1" BorderBrush="SteelBlue" Background="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBoxItem}},Path=Background}" CornerRadius="7">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock FontWeight="Light" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Caption}"></TextBlock>
</Grid>
</Border>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Border>
<Border Name="middle" BorderThickness="0,0.5,0,0.5" BorderBrush="#9ec4f7" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3">
<Grid Name="PluginArea">
</Grid>
</Border>
<Border Name="bottom" BorderThickness="0,0.5,0,0" BorderBrush="White" Grid.ColumnSpan="4" Grid.Row="2">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<btn:KImgButton Name="btnMovePrevious" Margin="5,0,0,0" Width="80" Height="27" Content="&lt; 上一步" Click="btnMovePrevious_Click"></btn:KImgButton>
<btn:KImgButton Name="btnMoveNext" Margin="5,0,0,0" Width="80" Content="下一步 &gt;" Click="btnMoveNext_Click"></btn:KImgButton>
<btn:KImgButton Name="btnSkip" Margin="5,0,0,0" Width="80" Content="跳过 &gt;" Click="btnSkip_Click"></btn:KImgButton>
<btn:KImgButton Name="btnFinish" Margin="5,0,0,0" Width="80" Content="完成 &gt;&gt;|" Click="btnFinish_Click"></btn:KImgButton>
<btn:KImgButton Name="btnExecute" Margin="5,0,0,0" Width="80" Content="执行" Click="btnExecute_Click"></btn:KImgButton>
<btn:KImgButton Name="btnCancel" Margin="5,0,0,0" Width="80" Click="btnCancel_Click">关闭</btn:KImgButton>
</StackPanel>
</Border>
</Grid>
</windows:BaseWindow>