Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid winappsdk crash #517

Merged
merged 3 commits into from
Mar 20, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 to avoid a crash on WinAppSDK apps -->
jeromelaban marked this conversation as resolved.
Show resolved Hide resolved
<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