mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -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"
|
<UserControl x:Class="CalculatorApp.HistoryList"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:win="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:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:automation="using:CalculatorApp.Common.Automation"
|
xmlns:automation="using:CalculatorApp.Common.Automation"
|
||||||
xmlns:controls="using:CalculatorApp.Controls"
|
xmlns:controls="using:CalculatorApp.Controls"
|
||||||
|
@ -12,7 +13,7 @@
|
||||||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||||
AutomationProperties.AutomationId="HistoryList"
|
AutomationProperties.AutomationId="HistoryList"
|
||||||
FlowDirection="LeftToRight"
|
FlowDirection="LeftToRight"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d xamarin">
|
||||||
|
|
||||||
<!-- UNO TODO x:Name="HistoryList"-->
|
<!-- UNO TODO x:Name="HistoryList"-->
|
||||||
|
|
||||||
|
@ -41,6 +42,12 @@
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
<converters:ItemSizeToVisibilityNegationConverter x:Key="ItemSizeToVisibilityNegationConverter"/>
|
<converters:ItemSizeToVisibilityNegationConverter x:Key="ItemSizeToVisibilityNegationConverter"/>
|
||||||
<converters:ItemSizeToVisibilityConverter x:Key="ItemSizeToVisibilityConverter"/>
|
<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-->
|
<!--UNO TODO-->
|
||||||
<win:MenuFlyout x:Key="HistoryContextMenu">
|
<win:MenuFlyout x:Key="HistoryContextMenu">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue