mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Merge pull request #54 from nventive/dev/dr/DateCalc2
Restore the Date calculator
This commit is contained in:
commit
973ba9737f
6 changed files with 8 additions and 8 deletions
|
@ -63,7 +63,7 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1550" />
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1560" />
|
||||
<PackageReference Include="Uno.UniversalImageLoader" Version="1.9.32" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<Version>4.3.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Uno.UI">
|
||||
<Version>1.45.0-dev.1550</Version>
|
||||
<Version>1.45.0-dev.1560</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1550" />
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1560" />
|
||||
<PackageReference Include="Uno.Wasm.Bootstrap" Version="1.0.0-dev.281" />
|
||||
<DotNetCliToolReference Include="Uno.Wasm.Bootstrap.Cli" Version="1.0.0-dev.276" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
<BundleResource Include="Resources\Fonts\winjs-symbols.ttf" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1550" />
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1560" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
</ItemGroup>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue