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