mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Fix hyperlink styles in Settings page
This commit is contained in:
parent
8da1883eda
commit
153f3d6191
2 changed files with 43 additions and 40 deletions
|
@ -32,6 +32,10 @@
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<automation:NarratorNotifier x:Name="NarratorNotifier"/>
|
<automation:NarratorNotifier x:Name="NarratorNotifier"/>
|
||||||
|
|
||||||
|
<!-- Override default hyperlink button background color -->
|
||||||
|
<StaticResource x:Key="HyperlinkButtonBackgroundPointerOver" ResourceKey="SubtleFillColorTransparentBrush"/>
|
||||||
|
<StaticResource x:Key="HyperlinkButtonBackgroundPressed" ResourceKey="SubtleFillColorTransparentBrush"/>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
|
@ -173,32 +177,38 @@
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
<Run x:Name="AboutControlCopyrightRun"/>
|
<Run x:Name="AboutControlCopyrightRun"/>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
|
||||||
<Paragraph Margin="0,16,0,0">
|
|
||||||
<Hyperlink NavigateUri="https://go.microsoft.com/fwlink/?LinkID=529064"
|
|
||||||
TextDecorations="None"
|
|
||||||
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=529064">
|
|
||||||
<Run x:Name="AboutEULA"/>
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<Paragraph Margin="0,16,0,0">
|
|
||||||
<Hyperlink NavigateUri="https://go.microsoft.com/fwlink/?LinkID=822631"
|
|
||||||
TextDecorations="None"
|
|
||||||
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=822631">
|
|
||||||
<Run x:Name="AboutControlServicesAgreement"/>
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
|
|
||||||
<Paragraph Margin="0,16,0,0">
|
|
||||||
<Hyperlink NavigateUri="https://go.microsoft.com/fwlink/?LinkID=521839"
|
|
||||||
TextDecorations="None"
|
|
||||||
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=521839">
|
|
||||||
<Run x:Name="AboutControlPrivacyStatement"/>
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
</RichTextBlock>
|
</RichTextBlock>
|
||||||
|
|
||||||
|
<HyperlinkButton x:Name="AboutEULA"
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
Padding="0"
|
||||||
|
NavigateUri="https://go.microsoft.com/fwlink/?LinkID=529064"
|
||||||
|
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=529064">
|
||||||
|
<TextBlock x:Uid="AboutEULA"
|
||||||
|
FontSize="{ThemeResource BodyFontSize}"
|
||||||
|
TextWrapping="Wrap"/>
|
||||||
|
</HyperlinkButton>
|
||||||
|
|
||||||
|
<HyperlinkButton x:Name="AboutControlServicesAgreement"
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
Padding="0"
|
||||||
|
NavigateUri="https://go.microsoft.com/fwlink/?LinkID=822631"
|
||||||
|
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=822631">
|
||||||
|
<TextBlock x:Uid="AboutControlServicesAgreement"
|
||||||
|
FontSize="{ThemeResource BodyFontSize}"
|
||||||
|
TextWrapping="Wrap"/>
|
||||||
|
</HyperlinkButton>
|
||||||
|
|
||||||
|
<HyperlinkButton x:Name="AboutControlPrivacyStatement"
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
Padding="0"
|
||||||
|
NavigateUri="https://go.microsoft.com/fwlink/?LinkID=521839"
|
||||||
|
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?LinkID=521839">
|
||||||
|
<TextBlock x:Uid="AboutControlPrivacyStatement"
|
||||||
|
FontSize="{ThemeResource BodyFontSize}"
|
||||||
|
TextWrapping="Wrap"/>
|
||||||
|
</HyperlinkButton>
|
||||||
|
|
||||||
<Button x:Name="FeedbackButton"
|
<Button x:Name="FeedbackButton"
|
||||||
x:Uid="FeedbackButton"
|
x:Uid="FeedbackButton"
|
||||||
MinWidth="120"
|
MinWidth="120"
|
||||||
|
@ -213,13 +223,17 @@
|
||||||
Margin="0,16,0,0"
|
Margin="0,16,0,0"
|
||||||
Style="{StaticResource SettingsRichTextBlockStyle}">
|
Style="{StaticResource SettingsRichTextBlockStyle}">
|
||||||
<Paragraph>
|
<Paragraph>
|
||||||
<Run x:Name="ContributeRunBeforeLink"/>
|
<!--
|
||||||
<Hyperlink NavigateUri="https://go.microsoft.com/fwlink/?linkid=2099939"
|
Note: don't put Hyperlink element start to the next line
|
||||||
|
otherwise unexpected whitespace will be add.
|
||||||
|
-->
|
||||||
|
<Run x:Name="ContributeRunBeforeLink"/><Hyperlink Foreground="{x:Bind AboutEULA.Foreground, Mode=OneWay}"
|
||||||
|
NavigateUri="https://go.microsoft.com/fwlink/?linkid=2099939"
|
||||||
TextDecorations="None"
|
TextDecorations="None"
|
||||||
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?linkid=2099939">
|
ToolTipService.ToolTip="https://go.microsoft.com/fwlink/?linkid=2099939"
|
||||||
|
UnderlineStyle="None">
|
||||||
<Run x:Name="ContributeRunLink"/>
|
<Run x:Name="ContributeRunLink"/>
|
||||||
</Hyperlink>
|
</Hyperlink><Run x:Name="ContributeRunAfterLink"/>
|
||||||
<Run x:Name="ContributeRunAfterLink"/>
|
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</RichTextBlock>
|
</RichTextBlock>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -96,7 +96,6 @@ namespace CalculatorApp
|
||||||
private void InitializeAboutContentTextBlock()
|
private void InitializeAboutContentTextBlock()
|
||||||
{
|
{
|
||||||
SetVersionString();
|
SetVersionString();
|
||||||
SetContentLinks();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetVersionString()
|
private void SetVersionString()
|
||||||
|
@ -106,16 +105,6 @@ namespace CalculatorApp
|
||||||
AboutBuildVersion.Text = appName + " " + version.Major + "." + version.Minor + "." + version.Build + "." + version.Revision;
|
AboutBuildVersion.Text = appName + " " + version.Major + "." + version.Minor + "." + version.Build + "." + version.Revision;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetContentLinks()
|
|
||||||
{
|
|
||||||
string eula = AppResourceProvider.GetInstance().GetResourceString(AboutEULA.Name + "/Text");
|
|
||||||
AboutEULA.Text = eula;
|
|
||||||
string agreement = AppResourceProvider.GetInstance().GetResourceString(AboutControlServicesAgreement.Name + "/Text");
|
|
||||||
AboutControlServicesAgreement.Text = agreement;
|
|
||||||
string privacyState = AppResourceProvider.GetInstance().GetResourceString(AboutControlPrivacyStatement.Name + "/Text");
|
|
||||||
AboutControlPrivacyStatement.Text = privacyState;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void InitializeContributeTextBlock()
|
private void InitializeContributeTextBlock()
|
||||||
{
|
{
|
||||||
var resProvider = AppResourceProvider.GetInstance();
|
var resProvider = AppResourceProvider.GetInstance();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue