Update Rates Hyperlink changed to a HyperlinkButton (#29)

* update currency hyperlink changed to a hyperlink button

* added bug report and feature request issue tempaltes

* copied pull_request_template.md to .github folder

* update currency hyperlink changed to a hyperlink button

* Updated hyperlink button to move text that should not be linked outside the hyperlink button

* Updated hyperlink button to move CurrencySecondaryStatus text out of the hyperlinkbutton control.

* Updated the HyperlinkButton to set the content without using a TextBlock and fixed the AutomationTree issue where the HyperlinkButton wasn't being seen
This commit is contained in:
Stephanie Anderl
2019-03-01 13:11:05 -08:00
committed by GitHub
parent 060139f493
commit 321672995d
66 changed files with 103 additions and 103 deletions

View File

@@ -614,17 +614,18 @@
IsTabStop="False"
TabIndex="5"
Visibility="Collapsed">
<TextBlock x:Name="CurrencyRefreshBlock"
Style="{ThemeResource CaptionTextBlockStyle}"
AutomationProperties.AccessibilityView="Raw">
<Hyperlink Foreground="{ThemeResource SystemControlHyperlinkBaseHighBrush}" Click="CurrencyRefreshButton_Click">
<Run x:Uid="RefreshButtonText"/>
</Hyperlink>
<Run x:Name="Spacing" Text="&#x200A;"/>
<Run x:Name="CurrencySecondaryStatus"
FontWeight="SemiBold"
Text=""/>
</TextBlock>
<StackPanel Orientation="Horizontal">
<HyperlinkButton x:Name="CurrencyRefreshBlock"
Foreground="{ThemeResource SystemControlHyperlinkBaseHighBrush}"
Click="CurrencyRefreshButton_Click"
x:Uid="RefreshButtonText"/>
<TextBlock Style="{ThemeResource CaptionTextBlockStyle}" Margin="0, 7, 0, 0">
<Run x:Name="Spacing" Text="&#x200A;"/>
<Run x:Name="CurrencySecondaryStatus"
FontWeight="SemiBold"
Text=""/>
</TextBlock>
</StackPanel>
</ContentControl>
<!-- Offline TextBlock -->

View File

@@ -159,7 +159,6 @@ void UnitConverter::OnOfflineNetworkAccess()
void UnitConverter::SetNormalCurrencyStatus()
{
AutomationProperties::SetAccessibilityView(CurrencyRefreshBlock, AccessibilityView::Raw);
CurrencySecondaryStatus->Text = L"";
}