Skip to content

Commit

Permalink
fix: add tint support back to tabbar, refactor tabbar styles (#527)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2225147)
  • Loading branch information
kazo0 authored and mergify[bot] committed Mar 27, 2023
1 parent 00f01d3 commit 76bfc99
Show file tree
Hide file tree
Showing 4 changed files with 287 additions and 512 deletions.
4 changes: 2 additions & 2 deletions src/Uno.Toolkit.UI/Controls/TabBar/TabBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ private void OnSelectedIndexChanged(DependencyPropertyChangedEventArgs? args)
TabBarItem? oldItem = null;
if (args?.OldValue is int oldIndex)
{
oldItem = this.ContainerFromIndex(oldIndex) as TabBarItem;
oldItem = this.ContainerFromIndexSafe<TabBarItem>(oldIndex);
}

var newItem = this.ContainerFromIndex(SelectedIndex) as TabBarItem;
var newItem = this.ContainerFromIndexSafe<TabBarItem>(SelectedIndex);

if (TryUpdateTabBarItemSelectedState(oldItem, newItem))
{
Expand Down
Loading

0 comments on commit 76bfc99

Please sign in to comment.