summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT.Phone
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2017-01-03 04:25:24 -0700
committerRui Marinho <me@ruimarinho.net>2017-01-03 11:25:24 +0000
commit8c5fd096945301a2db0d85baf77ce46812a8d89f (patch)
tree348002d9c1c24520231510abf4b0fb77458eda24 /Xamarin.Forms.Platform.WinRT.Phone
parentee608ba46642f735d723ac1d00b7f87298b949f6 (diff)
downloadxamarin-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.WinRT.Phone')
-rw-r--r--Xamarin.Forms.Platform.WinRT.Phone/FormsPivot.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT.Phone/FormsPivot.cs b/Xamarin.Forms.Platform.WinRT.Phone/FormsPivot.cs
index 396888e6..619c3112 100644
--- a/Xamarin.Forms.Platform.WinRT.Phone/FormsPivot.cs
+++ b/Xamarin.Forms.Platform.WinRT.Phone/FormsPivot.cs
@@ -23,11 +23,18 @@ namespace Xamarin.Forms.Platform.WinRT
CommandBar _commandBar;
#if WINDOWS_UWP
readonly ToolbarPlacementHelper _toolbarPlacementHelper = new ToolbarPlacementHelper();
+
+ public bool ShouldShowToolbar
+ {
+ get { return _toolbarPlacementHelper.ShouldShowToolBar; }
+ set { _toolbarPlacementHelper.ShouldShowToolBar = value; }
+ }
#endif
TaskCompletionSource<CommandBar> _commandBarTcs;
ToolbarPlacement _toolbarPlacement;
+
- public Brush ToolbarBackground
+ public Brush ToolbarBackground
{
get { return (Brush)GetValue(ToolbarBackgroundProperty); }
set { SetValue(ToolbarBackgroundProperty, value); }