Merge pull request #54 from nventive/dev/dr/DateCalc2

Restore the Date calculator
This commit is contained in:
David 2019-05-24 22:12:32 -04:00 committed by GitHub
commit 973ba9737f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -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" />

View file

@ -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
}

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>