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:
@@ -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=" "/>
|
||||
<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=" "/>
|
||||
<Run x:Name="CurrencySecondaryStatus"
|
||||
FontWeight="SemiBold"
|
||||
Text=""/>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</ContentControl>
|
||||
|
||||
<!-- Offline TextBlock -->
|
||||
|
@@ -159,7 +159,6 @@ void UnitConverter::OnOfflineNetworkAccess()
|
||||
|
||||
void UnitConverter::SetNormalCurrencyStatus()
|
||||
{
|
||||
AutomationProperties::SetAccessibilityView(CurrencyRefreshBlock, AccessibilityView::Raw);
|
||||
CurrencySecondaryStatus->Text = L"";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user