|
|
|
@ -106,46 +106,74 @@ |
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
<ControlTemplate x:Key="ExteriorWizardPageTemplate" TargetType="{x:Type local:WizardPage}"> |
|
|
|
<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Grid Background="{TemplateBinding Background}"> |
|
|
|
<ContentPresenter Margin="14" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" /> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
<ControlTemplate x:Key="InteriorWizardPageTemplate" TargetType="{x:Type local:WizardPage}"> |
|
|
|
<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Grid> |
|
|
|
<Grid Background="{TemplateBinding Background}"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="Auto" /> |
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Border SnapsToDevicePixels="true" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Grid Grid.Column="0" Background="{TemplateBinding ExteriorPanelBackground}" MinWidth="{Binding ExteriorPanelMinWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:Wizard}}" > |
|
|
|
<ContentControl Content="{TemplateBinding ExteriorPanelContent}" /> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
<Grid Column="1" Margin="14"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
<RowDefinition Height="*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="0,0,0,14" FontSize="16" FontWeight="Bold" Text="{TemplateBinding Title}" /> |
|
|
|
<TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="0,0,0,14" Text="{TemplateBinding Description}" /> |
|
|
|
<ContentPresenter Grid.Row="2" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" /> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
<Grid Name="PART_Header"> |
|
|
|
<StackPanel Grid.Column="0"> |
|
|
|
<TextBlock Margin="16,9,0,1" TextWrapping="Wrap" FontWeight="Bold" Text="{TemplateBinding Title}" /> |
|
|
|
<TextBlock Margin="32,0,0,3" TextWrapping="Wrap" Text="{TemplateBinding Description}" /> |
|
|
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
<ControlTemplate x:Key="InteriorWizardPageTemplate" TargetType="{x:Type local:WizardPage}"> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
<RowDefinition Height="*" /> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Border Grid.Row="1" SnapsToDevicePixels="true" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Grid Background="{TemplateBinding Background}"> |
|
|
|
<ContentPresenter Margin="14" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" /> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
<Grid Background="{TemplateBinding HeaderBackground}" MinHeight="56" > |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
<ColumnDefinition Width="Auto" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<StackPanel> |
|
|
|
<TextBlock Margin="16,9,0,1" TextWrapping="Wrap" FontWeight="Bold" Text="{TemplateBinding Title}" /> |
|
|
|
<TextBlock Margin="32,0,0,3" TextWrapping="Wrap" Text="{TemplateBinding Description}" /> |
|
|
|
</StackPanel> |
|
|
|
<Image Grid.Column="1" Margin="4" Source="{TemplateBinding HeaderImage}" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<Border Grid.Row="1" SnapsToDevicePixels="true" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Grid Background="{TemplateBinding Background}"> |
|
|
|
<ContentPresenter Margin="14" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" /> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
</Grid> |
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
<Style TargetType="{x:Type local:WizardPage}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="PageType" Value="Blank"> |
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" /> |
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
<Setter Property="Template" Value="{StaticResource BlankWizardPageTemplate}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="PageType" Value="Exterior"> |
|
|
|
<Setter Property="Background" Value="#FFFFFF" /> |
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
<Setter Property="ExteriorPanelBackground" Value="#E3EFFF" /> |
|
|
|
<Setter Property="Template" Value="{StaticResource ExteriorWizardPageTemplate}" /> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="PageType" Value="Interior"> |
|
|
|
<Setter Property="Background" Value="#FFF0F0F0" /> |
|
|
|
<Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" /> |
|
|
|
<Setter Property="BorderThickness" Value="0,1,0,0" /> |
|
|
|
<Setter Property="HeaderBackground" Value="#FFFFFF" /> |
|
|
|
<Setter Property="Template" Value="{StaticResource InteriorWizardPageTemplate}" /> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
|