mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Workaround ThemeDictionaries not supported
Fixes error causing HistoryList item template not to be applied.
This commit is contained in:
parent
425347f543
commit
a7839d2ffe
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
<UserControl x:Class="CalculatorApp.HistoryList"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:xamarin="http://platform.uno/xamarin"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:automation="using:CalculatorApp.Common.Automation"
|
||||
xmlns:controls="using:CalculatorApp.Controls"
|
||||
|
@ -12,7 +13,7 @@
|
|||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||
AutomationProperties.AutomationId="HistoryList"
|
||||
FlowDirection="LeftToRight"
|
||||
mc:Ignorable="d">
|
||||
mc:Ignorable="d xamarin">
|
||||
|
||||
<!-- UNO TODO x:Name="HistoryList"-->
|
||||
|
||||
|
@ -41,6 +42,12 @@
|
|||
</ResourceDictionary.ThemeDictionaries>
|
||||
<converters:ItemSizeToVisibilityNegationConverter x:Key="ItemSizeToVisibilityNegationConverter"/>
|
||||
<converters:ItemSizeToVisibilityConverter x:Key="ItemSizeToVisibilityConverter"/>
|
||||
<!--Workaround for nventive/Uno#935-->
|
||||
<xamarin:Style x:Key="BodyTextBlockMediumStyle"
|
||||
BasedOn="{StaticResource BodyTextBlockStyle}"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseMediumBrush}"/>
|
||||
</xamarin:Style>
|
||||
|
||||
<!--UNO TODO-->
|
||||
<win:MenuFlyout x:Key="HistoryContextMenu">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue