diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-01-03 04:25:24 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-01-03 11:25:24 +0000 |
commit | 8c5fd096945301a2db0d85baf77ce46812a8d89f (patch) | |
tree | 348002d9c1c24520231510abf4b0fb77458eda24 /Xamarin.Forms.Platform.UAP/MasterDetailControl.cs | |
parent | ee608ba46642f735d723ac1d00b7f87298b949f6 (diff) | |
download | xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.tar.gz xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.tar.bz2 xamarin-forms-8c5fd096945301a2db0d85baf77ce46812a8d89f.zip |
Make UWP toolbar display rules consistent with other platforms (#638)
Diffstat (limited to 'Xamarin.Forms.Platform.UAP/MasterDetailControl.cs')
-rw-r--r-- | Xamarin.Forms.Platform.UAP/MasterDetailControl.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs b/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs index 2357232e..79da59cb 100644 --- a/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs +++ b/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs @@ -51,6 +51,12 @@ namespace Xamarin.Forms.Platform.UWP CommandBar _commandBar; readonly ToolbarPlacementHelper _toolbarPlacementHelper = new ToolbarPlacementHelper(); + public bool ShouldShowToolbar + { + get { return _toolbarPlacementHelper.ShouldShowToolBar; } + set { _toolbarPlacementHelper.ShouldShowToolBar = value; } + } + TaskCompletionSource<CommandBar> _commandBarTcs; FrameworkElement _masterPresenter; FrameworkElement _detailPresenter; |