Skip to content

Commit

Permalink
fix(iOS): CommandBar back button title
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Jan 20, 2021
1 parent 788d926 commit 5e9cf9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Uno.UI/Controls/CommandBarHelper.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public static void PageCreated(UIViewController pageController)
// For example the Uno.UI.Toolkit.CommandBarExtensions.BackButtonTitle attached property is often set globally to "" through
// a default CommandBar style in order to remove the back button text throughout an entire application.
// In order to leverage this information, we create a new CommandBar instance that only exists to "render" the NavigationItem.
topCommandBar = new CommandBar();
// Since Uno 3.0 objects which are not part of the Visualtree does not get the Global Styles applied. Hence the fact we are manually applying it here.
topCommandBar = new CommandBar
{
Style = Application.Current.Resources[typeof(CommandBar)] as Style
};
}

// Hook CommandBar to NavigationItem
Expand Down

0 comments on commit 5e9cf9f

Please sign in to comment.