mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
Activate TextSelection on all interesting values
This commit is contained in:
parent
c6b770eec8
commit
b088d9f356
4 changed files with 11 additions and 1 deletions
|
@ -392,6 +392,7 @@
|
|||
FontSize="{TemplateBinding FontSize}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.AccessibilityView="Raw"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{TemplateBinding DisplayValue}"
|
||||
TextAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
TextWrapping="NoWrap"/>
|
||||
|
@ -478,6 +479,7 @@
|
|||
FontSize="{TemplateBinding FontSize}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.AccessibilityView="Raw"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{TemplateBinding DisplayValue}"
|
||||
TextAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
TextWrapping="NoWrap"/>
|
||||
|
@ -565,6 +567,7 @@
|
|||
FontSize="{TemplateBinding FontSize}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.AccessibilityView="Raw"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{TemplateBinding DisplayValue}"
|
||||
TextAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
TextWrapping="NoWrap"/>
|
||||
|
|
|
@ -459,11 +459,13 @@
|
|||
AutomationProperties.LiveSetting="Polite"
|
||||
AutomationProperties.Name="{Binding StrDateDiffResultAutomationName}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{Binding StrDateDiffResult}"/>
|
||||
<TextBlock Grid.Row="10"
|
||||
Style="{ThemeResource BaseTextBlockStyle}"
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{Binding StrDateDiffResultInDays, Mode=OneWay}"
|
||||
Visibility="{Binding IsDiffInDays, Converter={StaticResource BooleanToVisibilityNegationConverter}}"/>
|
||||
</Grid>
|
||||
|
@ -593,7 +595,8 @@
|
|||
<!-- Resulting Date -->
|
||||
<TextBlock x:Uid="DateLabel"
|
||||
Grid.Row="8"
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}"/>
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}"
|
||||
IsTextSelectionEnabled="True"/>
|
||||
|
||||
<TextBlock x:Name="DateResultLabel"
|
||||
Grid.Row="9"
|
||||
|
@ -602,6 +605,7 @@
|
|||
AutomationProperties.LiveSetting="Polite"
|
||||
AutomationProperties.Name="{Binding StrDateResultAutomationName}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{Binding StrDateResult}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
Margin="0,0,0,4"
|
||||
Style="{ThemeResource BodyTextBlockMediumStyle}"
|
||||
AutomationProperties.Name="{x:Bind AccExpression}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{x:Bind Expression}"
|
||||
TextAlignment="Right"
|
||||
TextWrapping="Wrap"/>
|
||||
|
@ -73,6 +74,7 @@
|
|||
Style="{ThemeResource TitleTextBlockStyle}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.Name="{x:Bind AccResult}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{x:Bind Result}"
|
||||
TextAlignment="Right"
|
||||
TextWrapping="Wrap"/>
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
Style="{ThemeResource TitleTextBlockStyle}"
|
||||
FontWeight="SemiBold"
|
||||
FlowDirection="LeftToRight"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{x:Bind Model.Value, Mode=OneWay}"
|
||||
TextAlignment="Right"
|
||||
TextReadingOrder="DetectFromContent"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue