Flow.Launcher/Flow.Launcher/WelcomeWindow.xaml

160 lines
6.5 KiB
Text
Raw Permalink Normal View History

<Window
x:Class="Flow.Launcher.WelcomeWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Flow.Launcher"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
Name="FlowWelcomeWindow"
2022-12-09 02:08:08 +00:00
Title="{DynamicResource Welcome_Page1_Title}"
Width="550"
Height="700"
MinWidth="550"
MinHeight="700"
MaxWidth="550"
MaxHeight="700"
d:DataContext="{d:DesignInstance Type=vm:WelcomeViewModel}"
Activated="OnActivated"
2021-11-30 07:38:21 +00:00
Background="{DynamicResource Color00B}"
Closed="Window_Closed"
2021-11-30 07:06:30 +00:00
Foreground="{DynamicResource PopupTextColor}"
MouseDown="window_MouseDown"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
2021-11-30 07:38:21 +00:00
<!--#region TitleBar-->
2021-11-30 07:06:30 +00:00
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
</WindowChrome.WindowChrome>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="80" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<StackPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image
Grid.Column="0"
Width="16"
Height="16"
Margin="10 4 4 4"
2021-11-30 07:06:30 +00:00
RenderOptions.BitmapScalingMode="HighQuality"
Source="/Images/app.png" />
<TextBlock
Grid.Column="1"
Margin="4 0 0 0"
2021-11-30 07:06:30 +00:00
VerticalAlignment="Center"
FontSize="12"
Foreground="{DynamicResource Color05B}"
Text="{DynamicResource Welcome_Page1_Title}" />
2021-11-30 07:06:30 +00:00
<Button
2025-02-21 12:45:42 +00:00
Grid.Column="2"
2021-11-30 07:06:30 +00:00
Click="BtnCancel_OnClick"
Style="{StaticResource TitleBarCloseButtonStyle}">
<Path
Width="46"
Height="32"
Data="M 18,11 27,20 M 18,20 27,11"
Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
StrokeThickness="1">
<Path.Style>
<Style TargetType="Path">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">
<Setter Property="Opacity" Value="0.5" />
</DataTrigger>
</Style.Triggers>
</Style>
</Path.Style>
</Path>
</Button>
</Grid>
</StackPanel>
2021-11-30 07:38:21 +00:00
<!--#endregion-->
2021-11-30 15:44:02 +00:00
<StackPanel Margin="0">
2021-11-30 07:38:21 +00:00
<ui:Frame
x:Name="ContentFrame"
2021-12-01 02:23:27 +00:00
HorizontalAlignment="Stretch"
Loaded="ContentFrame_Loaded">
2021-11-30 07:38:21 +00:00
<ui:Frame.ContentTransitions>
<ui:TransitionCollection>
<ui:NavigationThemeTransition />
</ui:TransitionCollection>
</ui:Frame.ContentTransitions>
</ui:Frame>
</StackPanel>
2021-11-30 07:06:30 +00:00
</StackPanel>
<Border
Grid.Row="1"
2021-11-30 07:38:21 +00:00
Background="{DynamicResource Color00B}"
2021-11-30 07:06:30 +00:00
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
BorderThickness="0 1 0 0">
2021-11-30 19:38:57 +00:00
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="130" />
<ColumnDefinition />
<ColumnDefinition Width="130" />
</Grid.ColumnDefinitions>
<StackPanel
Grid.Column="0"
Grid.ColumnSpan="3"
VerticalAlignment="Center">
<TextBlock
Name="PageNavigation"
Margin="0 2 0 0"
2021-11-30 19:38:57 +00:00
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="14"
Text="{Binding PageDisplay, Mode=OneWay}"
2021-11-30 19:38:57 +00:00
TextAlignment="Center" />
</StackPanel>
2021-11-30 07:38:21 +00:00
<Button
2021-11-30 19:38:57 +00:00
x:Name="SkipButton"
Grid.Column="0"
Width="100"
Height="40"
Margin="20 5 0 5"
2021-11-30 19:38:57 +00:00
Click="BtnCancel_OnClick"
Content="{DynamicResource Skip}"
2021-11-30 07:38:21 +00:00
DockPanel.Dock="Right"
2021-11-30 19:38:57 +00:00
FontSize="14" />
<DockPanel
Grid.Column="2"
Margin="0 0 20 0"
2021-11-30 19:38:57 +00:00
VerticalAlignment="Stretch">
<Button
x:Name="NextButton"
Width="40"
Height="40"
Margin="8 5 0 5"
2021-11-30 19:38:57 +00:00
Click="ForwardButton_Click"
DockPanel.Dock="Right"
IsEnabled="{Binding NextEnabled, Mode=OneWay}">
<ui:FontIcon FontSize="18" Glyph="&#xe76c;" />
</Button>
2021-11-30 19:38:57 +00:00
<Button
x:Name="BackButton"
Width="40"
Height="40"
Click="BackwardButton_Click"
DockPanel.Dock="Right"
IsEnabled="{Binding BackEnabled, Mode=OneWay}">
<ui:FontIcon FontSize="18" Glyph="&#xe76b;" />
</Button>
2021-11-30 19:38:57 +00:00
<StackPanel />
</DockPanel>
</Grid>
2021-11-30 07:06:30 +00:00
</Border>
</Grid>
</Window>