Skip to content

Commit

Permalink
update summary page (#3837)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonaby authored Sep 20, 2024
1 parent 6b805e3 commit 9754d3f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<ResourceDictionary Source="/Styles/Feedback_ThemeResources.xaml" />
<ResourceDictionary Source="/Styles/FontFamilies.xaml" />
<ResourceDictionary Source="/Styles/FontSizes.xaml" />
<ResourceDictionary Source="/Styles/HyperlinkButton.xaml" />
<ResourceDictionary Source="/Styles/LayoutSizes.xaml" />
<ResourceDictionary Source="/Styles/TextBlock.xaml" />
<ResourceDictionary Source="/Styles/Thickness.xaml" />
Expand Down
4 changes: 4 additions & 0 deletions src/DevHome.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<None Remove="Assets\WhatsNewPage\DarkTheme\ExtensionsBig.png" />
<None Remove="Assets\WhatsNewPage\LightTheme\Extensions.png" />
<None Remove="Assets\WhatsNewPage\LightTheme\ExtensionsBig.png" />
<None Remove="Styles\HyperlinkButton.xaml" />
<None Remove="Styles\WindowTitleBar_ThemeResources.xaml" />
</ItemGroup>

Expand Down Expand Up @@ -123,6 +124,9 @@
<None Update="NavConfig.jsonc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Page Update="Styles\HyperlinkButton.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Styles\WindowTitleBar_ThemeResources.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
Expand Down
20 changes: 20 additions & 0 deletions src/Styles/HyperlinkButton.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<Style
x:Key="HyperlinkButtonWithWrappedAndUnderlinedTextStyle"
TargetType="HyperlinkButton">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock
Text="{Binding}"
TextWrapping="Wrap"
TextDecorations="Underline" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
Grid.Row="1"
IsTabStop="false"
XYFocusKeyboardNavigation="Enabled">
<Grid.Resources>
<Style BasedOn="{StaticResource TextBlockButtonStyle}" TargetType="HyperlinkButton" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
Expand All @@ -59,25 +56,29 @@
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/SummaryPage_NextSteps"
x:Uid="SummaryPage_NextSteps"
Grid.Row="0"
Padding="0,20,0,25"
Foreground="{ThemeResource TextFillColorSecondary}"
Style="{ThemeResource BodyStrongTextBlockStyle}" />
<HyperlinkButton
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/SummaryPage_SetUpAnotherProject"
Style="{StaticResource HyperlinkButtonWithWrappedAndUnderlinedTextStyle}"
x:Uid="SummaryPage_SetUpAnotherProject"
Grid.Row="1"
Command="{Binding GoToMainPageCommand}" />
<HyperlinkButton
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/SummaryPage_ChangeDevHomeSettings"
Style="{StaticResource HyperlinkButtonWithWrappedAndUnderlinedTextStyle}"
x:Uid="SummaryPage_ChangeDevHomeSettings"
Grid.Row="2"
Command="{Binding GoToDevHomeSettingsCommand}" />
<HyperlinkButton
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/SummaryPage_ChangeDeveloperSettingsInWindows"
Style="{StaticResource HyperlinkButtonWithWrappedAndUnderlinedTextStyle}"
x:Uid="SummaryPage_ChangeDeveloperSettingsInWindows"
Grid.Row="3"
Command="{Binding GoToForDevelopersSettingsPageCommand}" />
<HyperlinkButton
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/SummaryPage_LearnMoreAboutDevHome"
Style="{StaticResource HyperlinkButtonWithWrappedAndUnderlinedTextStyle}"
x:Uid="SummaryPage_LearnMoreAboutDevHome"
Grid.Row="4"
Command="{Binding LearnMoreCommand}" />
</Grid>
Expand Down

0 comments on commit 9754d3f

Please sign in to comment.