Skip to content

Commit

Permalink
Merge pull request #520 from unoplatform/mergify/bp/release/stable/2.…
Browse files Browse the repository at this point in the history
…5/pr-517

fix: avoid winappsdk crash (backport #517)
  • Loading branch information
jeromelaban committed Mar 20, 2023
2 parents f0ef924 + 9972e92 commit d9e5388
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/library/Uno.Toolkit.Material/Styles/Controls/v2/TabBar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
<Thickness x:Key="MaterialNavigationTabBarItemLargeBadgePadding">4,0</Thickness>
<CornerRadius x:Key="MaterialNavigationTabBarItemLargeBadgeCornerRadius">8</CornerRadius>

<!-- WORKAROUND: ControlExtensions must be explicitly referenced as an attribute to avoid a crash on WinAppSDK apps, and not just as a a setter property -->
<Style x:Key="WorkaroundTabBarStyle"
TargetType="utu:TabBar">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="utu:TabBar">
<Grid um:ControlExtensions.IsTintEnabled="False" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<!--#region TabBar Styles-->

<Style x:Key="BaseMaterialTabBarStyle"
Expand Down

0 comments on commit d9e5388

Please sign in to comment.