using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific { using FormsElement = Forms.Page; public static class Page { #region ToolbarPlacement public static readonly BindableProperty ToolbarPlacementProperty = BindableProperty.CreateAttached("ToolbarPlacement", typeof(ToolbarPlacement), typeof(FormsElement), ToolbarPlacement.Default); public static ToolbarPlacement GetToolbarPlacement(BindableObject element) { return (ToolbarPlacement)element.GetValue(ToolbarPlacementProperty); } public static void SetToolbarPlacement(BindableObject element, ToolbarPlacement toolbarPlacement) { element.SetValue(ToolbarPlacementProperty, toolbarPlacement); } public static ToolbarPlacement GetToolbarPlacement(this IPlatformElementConfiguration config) { return (ToolbarPlacement)config.Element.GetValue(ToolbarPlacementProperty); } public static IPlatformElementConfiguration SetToolbarPlacement( this IPlatformElementConfiguration config, ToolbarPlacement value) { config.Element.SetValue(ToolbarPlacementProperty, value); return config; } #endregion } }