2021-03-03 01:56:37 +08:00
|
|
|
<Page
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.OOBE.Views.OobeRun"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2021-04-05 16:52:44 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
mc:Ignorable="d"
|
2021-03-03 01:56:37 +08:00
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="280" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Image Stretch="UniformToFill"
|
2021-07-28 18:07:43 +08:00
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
2021-03-03 01:56:37 +08:00
|
|
|
Source="{x:Bind ViewModel.PreviewImageSource}" />
|
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1"
|
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
|
<StackPanel Orientation="Vertical"
|
2021-03-03 08:24:05 +08:00
|
|
|
Margin="{StaticResource OobePageContentMargin}"
|
2021-03-03 01:56:37 +08:00
|
|
|
VerticalAlignment="Top">
|
|
|
|
|
|
|
|
<TextBlock Text="{x:Bind ViewModel.ModuleName}"
|
2021-04-19 18:42:36 +08:00
|
|
|
AutomationProperties.HeadingLevel="Level2"
|
2021-03-03 01:56:37 +08:00
|
|
|
Style="{StaticResource PageTitleStyle}" />
|
|
|
|
|
|
|
|
<TextBlock Margin="0,4,0,0"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
Text="{x:Bind ViewModel.Description}" />
|
|
|
|
|
|
|
|
<HyperlinkButton NavigateUri="{x:Bind ViewModel.Link}"
|
|
|
|
Margin="0,0,0,4">
|
|
|
|
<TextBlock>
|
|
|
|
<Run x:Uid="Oobe_LearnMore" />
|
|
|
|
<Run Text="{x:Bind ViewModel.ModuleName}" />
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
</HyperlinkButton>
|
|
|
|
|
|
|
|
<TextBlock x:Uid="Oobe_HowToLaunch"
|
2021-04-19 18:42:36 +08:00
|
|
|
AutomationProperties.HeadingLevel="Level3"
|
2021-03-03 01:56:37 +08:00
|
|
|
Style="{StaticResource OobeSubtitleStyle}" />
|
|
|
|
|
2021-04-05 16:52:44 +08:00
|
|
|
<controls:ShortcutTextControl x:Uid="Oobe_Run_HowToLaunch" />
|
2021-04-19 18:42:36 +08:00
|
|
|
|
2021-03-03 01:56:37 +08:00
|
|
|
<TextBlock x:Uid="Oobe_TipsAndTricks"
|
2021-04-19 18:42:36 +08:00
|
|
|
AutomationProperties.HeadingLevel="Level3"
|
2021-03-03 01:56:37 +08:00
|
|
|
Style="{StaticResource OobeSubtitleStyle}" />
|
|
|
|
|
2021-04-05 16:52:44 +08:00
|
|
|
<controls:ShortcutTextControl x:Uid="Oobe_Run_TipsAndTricks" />
|
2021-03-03 01:56:37 +08:00
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
Margin="0,32,0,0"
|
|
|
|
Spacing="4">
|
|
|
|
|
|
|
|
<Button Click="Start_Run_Click" Style="{StaticResource AccentButtonStyle}">
|
|
|
|
<TextBlock>
|
|
|
|
<Run x:Uid="Oobe_Launch" />
|
|
|
|
<Run Text="{x:Bind ViewModel.ModuleName}" />
|
|
|
|
</TextBlock>
|
|
|
|
</Button>
|
|
|
|
|
2021-04-19 18:42:36 +08:00
|
|
|
<Button Click="SettingsLaunchButton_Click"
|
|
|
|
AutomationProperties.LabeledBy="{Binding ElementName=SettingsLabel}">
|
2021-03-03 01:56:37 +08:00
|
|
|
<StackPanel Orientation="Horizontal"
|
|
|
|
Spacing="8">
|
|
|
|
<TextBlock Text=""
|
|
|
|
Margin="0,3,0,0"
|
|
|
|
FontFamily="Segoe MDL2 Assets" />
|
2021-04-19 18:42:36 +08:00
|
|
|
<TextBlock x:Uid="OOBE_Settings" Name="SettingsLabel" />
|
2021-03-03 01:56:37 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
|
|
|
</Page>
|