diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/Platform.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/Platform.cs b/Xamarin.Forms.Platform.WinRT/Platform.cs index e9f6b95c..2e30ac10 100644 --- a/Xamarin.Forms.Platform.WinRT/Platform.cs +++ b/Xamarin.Forms.Platform.WinRT/Platform.cs @@ -296,13 +296,16 @@ namespace Xamarin.Forms.Platform.WinRT button.Command = new MenuItemCommand(item); button.DataContext = item; -#if WINDOWS_UWP - toolBarProvider?.BindForegroundColor(button); -#endif ToolbarItemOrder order = item.Order == ToolbarItemOrder.Default ? ToolbarItemOrder.Primary : item.Order; + if (order == ToolbarItemOrder.Primary) + { +#if WINDOWS_UWP + toolBarProvider?.BindForegroundColor(button); +#endif commandBar.PrimaryCommands.Add(button); + } else commandBar.SecondaryCommands.Add(button); } |