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
…528)

(cherry picked from commit 2225147)

Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com>
  • Loading branch information
mergify[bot] and kazo0 committed Mar 30, 2023
1 parent 00f01d3 commit 70a3c29
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 70a3c29

Please sign in to comment.