mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Restore the Date calculator
This commit is contained in:
parent
9285eb03a2
commit
93f26159a3
2 changed files with 4 additions and 4 deletions
|
@ -137,7 +137,7 @@ namespace CalculatorApp
|
|||
m_currencyTrailingDigits = NumberFormatInfo.CurrentInfo.CurrencyDecimalDigits;
|
||||
m_currencySymbolPrecedence = ~(NumberFormatInfo.CurrentInfo.CurrencyPositivePattern) & 1;
|
||||
m_resolvedName = CultureInfo.CurrentCulture.Name;
|
||||
m_calendarIdentifier = ""; // new Windows.Globalization.Calendar().GetCalendarSystem();
|
||||
m_calendarIdentifier = new Windows.Globalization.Calendar().GetCalendarSystem();
|
||||
m_firstDayOfWeek = (Windows.Globalization.DayOfWeek)CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -581,19 +581,19 @@
|
|||
Margin="0,0,0,0"
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseHighBrush}" />
|
||||
|
||||
<!--TOOD UNO ContextFlyout="{StaticResource ResultsContextMenu}"-->
|
||||
<TextBlock x:Name="DateDiffAllUnitsResultLabel"
|
||||
Grid.Row="8"
|
||||
Style="{ThemeResource SubtitleTextBlockStyle}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.LiveSetting="Polite"
|
||||
AutomationProperties.Name="{Binding StrDateDiffResultAutomationName}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
Text="{Binding StrDateDiffResult}" />
|
||||
|
||||
<!--TODO UNO ContextFlyout="{StaticResource ResultsContextMenu}"-->
|
||||
<TextBlock Grid.Row="10"
|
||||
Style="{ThemeResource BaseTextBlockStyle}"
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
Text="{Binding StrDateDiffResultInDays, Mode=OneWay}"
|
||||
Visibility="{Binding IsDiffInDays, Converter={StaticResource BooleanToVisibilityNegationConverter}}" />
|
||||
</Grid>
|
||||
|
@ -741,13 +741,13 @@
|
|||
Grid.Row="8"
|
||||
Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}" />
|
||||
|
||||
<!--TODO UNO ContextFlyout="{StaticResource ResultsContextMenu}"-->
|
||||
<TextBlock x:Name="DateResultLabel"
|
||||
Grid.Row="9"
|
||||
Style="{ThemeResource SubtitleTextBlockStyle}"
|
||||
FontWeight="SemiBold"
|
||||
AutomationProperties.LiveSetting="Polite"
|
||||
AutomationProperties.Name="{Binding StrDateResultAutomationName}"
|
||||
ContextFlyout="{StaticResource ResultsContextMenu}"
|
||||
Text="{Binding StrDateResult}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue