+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific.AppCompat
-{
- using FormsElement = Forms.Application;
-
- public static class Application
- {
- public static readonly BindableProperty SendDisappearingEventOnPauseProperty = BindableProperty.Create(nameof(SendDisappearingEventOnPause), typeof(bool), typeof(Application), true);
-
- public static bool GetSendDisappearingEventOnPause(BindableObject element)
- {
- return (bool)element.GetValue(SendDisappearingEventOnPauseProperty);
- }
-
- public static void SetSendDisappearingEventOnPause(BindableObject element, bool value)
- {
- element.SetValue(SendDisappearingEventOnPauseProperty, value);
- }
-
- public static bool GetSendDisappearingEventOnPause(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetSendDisappearingEventOnPause(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SendDisappearingEventOnPause(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetSendDisappearingEventOnPause(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty SendAppearingEventOnResumeProperty = BindableProperty.Create(nameof(SendAppearingEventOnResume), typeof(bool), typeof(Application), true);
-
- public static bool GetSendAppearingEventOnResume(BindableObject element)
- {
- return (bool)element.GetValue(SendAppearingEventOnResumeProperty);
- }
-
- public static void SetSendAppearingEventOnResume(BindableObject element, bool value)
- {
- element.SetValue(SendAppearingEventOnResumeProperty, value);
- }
-
- public static bool GetSendAppearingEventOnResume(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetSendAppearingEventOnResume(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SendAppearingEventOnResume(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetSendAppearingEventOnResume(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShouldPreserveKeyboardOnResumeProperty = BindableProperty.Create(nameof(ShouldPreserveKeyboardOnResume), typeof(bool), typeof(Application), false);
-
- public static bool GetShouldPreserveKeyboardOnResume(BindableObject element)
- {
- return (bool)element.GetValue(ShouldPreserveKeyboardOnResumeProperty);
- }
-
- public static void SetShouldPreserveKeyboardOnResume(BindableObject element, bool value)
- {
- element.SetValue(ShouldPreserveKeyboardOnResumeProperty, value);
- }
-
- public static bool GetShouldPreserveKeyboardOnResume(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetShouldPreserveKeyboardOnResume(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> ShouldPreserveKeyboardOnResume(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetShouldPreserveKeyboardOnResume(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific.AppCompat
-{
- using FormsElement = Forms.NavigationPage;
-
- public static class NavigationPage
- {
- public static readonly BindableProperty BarHeightProperty = BindableProperty.Create("BarHeight", typeof(int), typeof(NavigationPage), default(int));
-
- public static int GetBarHeight(BindableObject element)
- {
- return (int)element.GetValue(BarHeightProperty);
- }
-
- public static void SetBarHeight(BindableObject element, int value)
- {
- element.SetValue(BarHeightProperty, value);
- }
-
- public static int GetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetBarHeight(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetBarHeight(this IPlatformElementConfiguration<Android, FormsElement> config, int value)
- {
- SetBarHeight(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.Application;
-
- public enum WindowSoftInputModeAdjust
- {
- Pan,
- Resize,
- Unspecified
- }
-
- public static class Application
- {
- public static readonly BindableProperty WindowSoftInputModeAdjustProperty =
- BindableProperty.Create("WindowSoftInputModeAdjust", typeof(WindowSoftInputModeAdjust),
- typeof(Application), WindowSoftInputModeAdjust.Pan);
-
- public static WindowSoftInputModeAdjust GetWindowSoftInputModeAdjust(BindableObject element)
- {
- return (WindowSoftInputModeAdjust)element.GetValue(WindowSoftInputModeAdjustProperty);
- }
-
- public static void SetWindowSoftInputModeAdjust(BindableObject element, WindowSoftInputModeAdjust value)
- {
- element.SetValue(WindowSoftInputModeAdjustProperty, value);
- }
-
- public static WindowSoftInputModeAdjust GetWindowSoftInputModeAdjust(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetWindowSoftInputModeAdjust(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> UseWindowSoftInputModeAdjust(this IPlatformElementConfiguration<Android, FormsElement> config, WindowSoftInputModeAdjust value)
- {
- SetWindowSoftInputModeAdjust(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.Button;
-
- public static class Button
- {
- #region UseDefaultPadding
- public static readonly BindableProperty UseDefaultPaddingProperty = BindableProperty.Create("UseDefaultPadding", typeof(bool), typeof(Button), false);
-
- public static bool GetUseDefaultPadding(BindableObject element)
- {
- return (bool)element.GetValue(UseDefaultPaddingProperty);
- }
-
- public static void SetUseDefaultPadding(BindableObject element, bool value)
- {
- element.SetValue(UseDefaultPaddingProperty, value);
- }
-
- public static bool UseDefaultPadding(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetUseDefaultPadding(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetUseDefaultPadding(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetUseDefaultPadding(config.Element, value);
- return config;
- }
- #endregion
-
- #region UseDefaultShadow
- public static readonly BindableProperty UseDefaultShadowProperty = BindableProperty.Create("UseDefaultShadow", typeof(bool), typeof(Button), false);
-
- public static bool GetUseDefaultShadow(BindableObject element)
- {
- return (bool)element.GetValue(UseDefaultShadowProperty);
- }
-
- public static void SetUseDefaultShadow(BindableObject element, bool value)
- {
- element.SetValue(UseDefaultShadowProperty, value);
- }
-
- public static bool UseDefaultShadow(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetUseDefaultShadow(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetUseDefaultShadow(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetUseDefaultShadow(config.Element, value);
- return config;
- }
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.Entry;
-
- public static class Entry
- {
- public static readonly BindableProperty ImeOptionsProperty = BindableProperty.Create(nameof(ImeOptions), typeof(ImeFlags), typeof(Entry), ImeFlags.Default);
-
- public static ImeFlags GetImeOptions(BindableObject element)
- {
- return (ImeFlags)element.GetValue(ImeOptionsProperty);
- }
-
- public static void SetImeOptions(BindableObject element, ImeFlags value)
- {
- element.SetValue(ImeOptionsProperty, value);
- }
-
- public static ImeFlags ImeOptions(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetImeOptions(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetImeOptions(this IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android, FormsElement> config, ImeFlags value)
- {
- SetImeOptions(config.Element, value);
- return config;
- }
- }
-
- public enum ImeFlags
- {
- Default = 0,
- None = 1,
- Go = 2,
- Search = 3,
- Send = 4,
- Next = 5,
- Done = 6,
- Previous = 7,
- ImeMaskAction = 255,
- NoPersonalizedLearning = 16777216,
- NoFullscreen = 33554432,
- NoExtractUi = 268435456,
- NoAccessoryAction = 536870912,
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsImageButton = Forms.ImageButton;
-
- public static class ImageButton
- {
- #region Shadow
- public static readonly BindableProperty IsShadowEnabledProperty = BindableProperty.Create("IsShadowEnabled", typeof(bool), typeof(Forms.ImageButton), false);
-
- public static bool GetIsShadowEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsShadowEnabledProperty);
- }
-
- public static void SetIsShadowEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsShadowEnabledProperty, value);
- }
-
- public static bool GetIsShadowEnabled(this IPlatformElementConfiguration<Android, FormsImageButton> config)
- {
- return GetIsShadowEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsImageButton> SetIsShadowEnabled(this IPlatformElementConfiguration<Android, FormsImageButton> config, bool value)
- {
- SetIsShadowEnabled(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowColorProperty = BindableProperty.Create("ShadowColor", typeof(Color), typeof(ImageButton), Color.Default);
-
- public static Color GetShadowColor(BindableObject element)
- {
- return (Color)element.GetValue(ShadowColorProperty);
- }
-
- public static void SetShadowColor(BindableObject element, Color value)
- {
- element.SetValue(ShadowColorProperty, value);
- }
-
- public static Color GetShadowColor(this IPlatformElementConfiguration<Android, FormsImageButton> config)
- {
- return GetShadowColor(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsImageButton> SetShadowColor(this IPlatformElementConfiguration<Android, FormsImageButton> config, Color value)
- {
- SetShadowColor(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowRadiusProperty = BindableProperty.Create("ShadowRadius", typeof(double), typeof(ImageButton), 10.0);
-
- public static double GetShadowRadius(BindableObject element)
- {
- return (double)element.GetValue(ShadowRadiusProperty);
- }
-
- public static void SetShadowRadius(BindableObject element, double value)
- {
- element.SetValue(ShadowRadiusProperty, value);
- }
-
- public static double GetShadowRadius(this IPlatformElementConfiguration<Android, FormsImageButton> config)
- {
- return GetShadowRadius(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsImageButton> SetShadowRadius(this IPlatformElementConfiguration<Android, FormsImageButton> config, double value)
- {
- SetShadowRadius(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowOffsetProperty = BindableProperty.Create("ShadowOffset", typeof(Size), typeof(VisualElement), Size.Zero);
-
- public static Size GetShadowOffset(BindableObject element)
- {
- return (Size)element.GetValue(ShadowOffsetProperty);
- }
-
- public static void SetShadowOffset(BindableObject element, Size value)
- {
- element.SetValue(ShadowOffsetProperty, value);
- }
-
- public static Size GetShadowOffset(this IPlatformElementConfiguration<Android, FormsImageButton> config)
- {
- return GetShadowOffset(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsImageButton> SetShadowOffset(this IPlatformElementConfiguration<Android, FormsImageButton> config, Size value)
- {
- SetShadowOffset(config.Element, value);
- return config;
- }
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.ListView;
-
- public static class ListView
- {
- public static readonly BindableProperty IsFastScrollEnabledProperty = BindableProperty.Create("IsFastScrollEnabled", typeof(bool), typeof(ListView), false);
-
- public static bool GetIsFastScrollEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsFastScrollEnabledProperty);
- }
-
- public static void SetIsFastScrollEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsFastScrollEnabledProperty, value);
- }
-
- public static bool IsFastScrollEnabled(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetIsFastScrollEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetIsFastScrollEnabled(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetIsFastScrollEnabled(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.ShellItem;
-
- public static class ShellItem
- {
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.SwipeView;
-
- public enum SwipeTransitionMode
- {
- Reveal = 0,
- Drag = 1
- }
-
- public static class SwipeView
- {
- public static readonly BindableProperty SwipeTransitionModeProperty = BindableProperty.Create("SwipeTransitionMode", typeof(SwipeTransitionMode), typeof(SwipeView), SwipeTransitionMode.Reveal);
-
- public static SwipeTransitionMode GetSwipeTransitionMode(BindableObject element)
- {
- return (SwipeTransitionMode)element.GetValue(SwipeTransitionModeProperty);
- }
-
- public static void SetSwipeTransitionMode(BindableObject element, SwipeTransitionMode value)
- {
- element.SetValue(SwipeTransitionModeProperty, value);
- }
-
- public static SwipeTransitionMode GetSwipeTransitionMode(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetSwipeTransitionMode(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetSwipeTransitionMode(this IPlatformElementConfiguration<Android, FormsElement> config, SwipeTransitionMode value)
- {
- SetSwipeTransitionMode(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using System;
- using System.ComponentModel;
- using FormsElement = Forms.TabbedPage;
-
- public static class TabbedPage
- {
- public static readonly BindableProperty IsSwipePagingEnabledProperty =
- BindableProperty.Create("IsSwipePagingEnabled", typeof(bool),
- typeof(TabbedPage), true);
-
- public static bool GetIsSwipePagingEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsSwipePagingEnabledProperty);
- }
-
- public static void SetIsSwipePagingEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsSwipePagingEnabledProperty, value);
- }
-
- public static bool IsSwipePagingEnabled(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetIsSwipePagingEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetIsSwipePagingEnabled(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetIsSwipePagingEnabled(config.Element, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> EnableSwipePaging(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- SetIsSwipePagingEnabled(config.Element, true);
- return config;
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> DisableSwipePaging(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- SetIsSwipePagingEnabled(config.Element, false);
- return config;
- }
-
- public static readonly BindableProperty IsSmoothScrollEnabledProperty =
- BindableProperty.Create("IsSmoothScrollEnabled", typeof(bool),
- typeof(TabbedPage), true);
-
- public static bool GetIsSmoothScrollEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsSmoothScrollEnabledProperty);
- }
-
- public static void SetIsSmoothScrollEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsSmoothScrollEnabledProperty, value);
- }
-
- public static bool IsSmoothScrollEnabled(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetIsSmoothScrollEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetIsSmoothScrollEnabled(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetIsSmoothScrollEnabled(config.Element, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> EnableSmoothScroll(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- SetIsSmoothScrollEnabled(config.Element, true);
- return config;
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> DisableSmoothScroll(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- SetIsSmoothScrollEnabled(config.Element, false);
- return config;
- }
-
- public static readonly BindableProperty OffscreenPageLimitProperty =
- BindableProperty.Create("OffscreenPageLimit", typeof(int),
- typeof(TabbedPage), 3, validateValue: (binding, value) => (int)value >= 0);
-
- public static int GetOffscreenPageLimit(BindableObject element)
- {
- return (int)element.GetValue(OffscreenPageLimitProperty);
- }
-
- public static void SetOffscreenPageLimit(BindableObject element, int value)
- {
- element.SetValue(OffscreenPageLimitProperty, value);
- }
-
- public static int OffscreenPageLimit(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetOffscreenPageLimit(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetOffscreenPageLimit(this IPlatformElementConfiguration<Android, FormsElement> config, int value)
- {
- SetOffscreenPageLimit(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ToolbarPlacementProperty =
- BindableProperty.Create("ToolbarPlacement", typeof(ToolbarPlacement),
- typeof(TabbedPage), ToolbarPlacement.Top);
-
-
- public static ToolbarPlacement GetToolbarPlacement(BindableObject element)
- {
- return (ToolbarPlacement)element.GetValue(ToolbarPlacementProperty);
- }
-
- public static void SetToolbarPlacement(BindableObject element, ToolbarPlacement value)
- {
- if (element.IsSet(ToolbarPlacementProperty) && GetToolbarPlacement(element) != value)
- {
- throw new InvalidOperationException("Changing the tabs placement after it's been set is not supported.");
- }
-
- element.SetValue(ToolbarPlacementProperty, value);
- }
-
- public static ToolbarPlacement GetToolbarPlacement(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetToolbarPlacement(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetToolbarPlacement(this IPlatformElementConfiguration<Android, FormsElement> config, ToolbarPlacement value)
- {
- SetToolbarPlacement(config.Element, value);
- return config;
- }
-
- public static int GetMaxItemCount(BindableObject element)
- {
- if (GetToolbarPlacement(element) == ToolbarPlacement.Bottom)
- {
- return 5;
- }
-
- return int.MaxValue;
- }
-
- public static int GetMaxItemCount(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetMaxItemCount(config.Element);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarItemColor is obsolete as of version 4.0. Please use TabbedPage.UnselectedTabColor instead.")]
- public static readonly BindableProperty BarItemColorProperty =
- BindableProperty.Create("BarItemColor", typeof(Color),
- typeof(TabbedPage), Color.Default, propertyChanged: (sender, oldValue, newValue) => { ((FormsElement)sender).UnselectedTabColor = (Color)newValue; });
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarItemColor is obsolete as of version 4.0. Please use TabbedPage.UnselectedTabColor instead.")]
- public static Color GetBarItemColor(BindableObject element)
- {
- return (Color)element.GetValue(BarItemColorProperty);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarItemColor is obsolete as of version 4.0. Please use TabbedPage.UnselectedTabColor instead.")]
- public static void SetBarItemColor(BindableObject element, Color value)
- {
- element.SetValue(BarItemColorProperty, value);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarItemColor is obsolete as of version 4.0. Please use TabbedPage.UnselectedTabColor instead.")]
- public static Color GetBarItemColor(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetBarItemColor(config.Element);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarItemColor is obsolete as of version 4.0. Please use TabbedPage.UnselectedTabColor instead.")]
- public static IPlatformElementConfiguration<Android, FormsElement> SetBarItemColor(this IPlatformElementConfiguration<Android, FormsElement> config, Color value)
- {
- SetBarItemColor(config.Element, value);
- return config;
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarSelectedItemColor is obsolete as of version 4.0. Please use TabbedPage.SelectedTabColor instead.")]
- public static readonly BindableProperty BarSelectedItemColorProperty =
- BindableProperty.Create("BarSelectedItemColor", typeof(Color),
- typeof(TabbedPage), Color.Default, propertyChanged: (sender, oldValue, newValue) => { ((FormsElement)sender).SelectedTabColor = (Color)newValue; });
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarSelectedItemColor is obsolete as of version 4.0. Please use TabbedPage.SelectedTabColor instead.")]
- public static Color GetBarSelectedItemColor(BindableObject element)
- {
- return (Color)element.GetValue(BarSelectedItemColorProperty);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarSelectedItemColor is obsolete as of version 4.0. Please use TabbedPage.SelectedTabColor instead.")]
- public static void SetBarSelectedItemColor(BindableObject element, Color value)
- {
- element.SetValue(BarSelectedItemColorProperty, value);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarSelectedItemColor is obsolete as of version 4.0. Please use TabbedPage.SelectedTabColor instead.")]
- public static IPlatformElementConfiguration<Android, FormsElement> SetBarSelectedItemColor(this IPlatformElementConfiguration<Android, FormsElement> config, Color value)
- {
- SetBarSelectedItemColor(config.Element, value);
- return config;
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- [Obsolete("BarSelectedItemColor is obsolete as of version 4.0. Please use TabbedPage.SelectedTabColor instead.")]
- public static Color GetBarSelectedItemColor(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetBarSelectedItemColor(config.Element);
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- public enum ToolbarPlacement
- {
- Default,
- Top,
- Bottom
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using System;
- using FormsCell = Forms.Cell;
-
- public static class ViewCell
- {
- public static readonly BindableProperty IsContextActionsLegacyModeEnabledProperty = BindableProperty.Create("IsContextActionsLegacyModeEnabled", typeof(bool), typeof(Forms.ViewCell), false, propertyChanged: OnIsContextActionsLegacyModeEnabledPropertyChanged);
-
- private static void OnIsContextActionsLegacyModeEnabledPropertyChanged(BindableObject element, object oldValue, object newValue)
- {
- var cell = element as FormsCell;
- cell.IsContextActionsLegacyModeEnabled = (bool)newValue;
- }
-
- public static bool GetIsContextActionsLegacyModeEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsContextActionsLegacyModeEnabledProperty);
- }
-
- public static void SetIsContextActionsLegacyModeEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsContextActionsLegacyModeEnabledProperty, value);
- }
-
- public static bool GetIsContextActionsLegacyModeEnabled(this IPlatformElementConfiguration<Android, FormsCell> config)
- {
- return GetIsContextActionsLegacyModeEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsCell> SetIsContextActionsLegacyModeEnabled(this IPlatformElementConfiguration<Android, FormsCell> config, bool value)
- {
- SetIsContextActionsLegacyModeEnabled(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.VisualElement;
-
- public static class VisualElement
- {
- #region Elevation
-
- public static readonly BindableProperty ElevationProperty =
- BindableProperty.Create("Elevation", typeof(float?),
- typeof(FormsElement));
-
- public static float? GetElevation(FormsElement element)
- {
- return (float?)element.GetValue(ElevationProperty);
- }
-
- public static void SetElevation(FormsElement element, float? value)
- {
- element.SetValue(ElevationProperty, value);
- }
-
- public static float? GetElevation(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetElevation(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetElevation(this IPlatformElementConfiguration<Android, FormsElement> config, float? value)
- {
- SetElevation(config.Element, value);
- return config;
- }
-
- #endregion
-
- #region IsLegacyColorModeEnabled
-
- public static readonly BindableProperty IsLegacyColorModeEnabledProperty =
- BindableProperty.CreateAttached("IsLegacyColorModeEnabled", typeof(bool),
- typeof(FormsElement), true);
-
- public static bool GetIsLegacyColorModeEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static void SetIsLegacyColorModeEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsLegacyColorModeEnabledProperty, value);
- }
-
- public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return (bool)config.Element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetIsLegacyColorModeEnabled(
- this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- config.Element.SetValue(IsLegacyColorModeEnabledProperty, value);
- return config;
- }
-
- #endregion
- }
-}
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.AndroidSpecific
-{
- using FormsElement = Forms.WebView;
-
- public enum MixedContentHandling
- {
- AlwaysAllow = 0,
- NeverAllow = 1,
- CompatibilityMode = 2
- }
-
- public static class WebView
- {
- public static readonly BindableProperty MixedContentModeProperty = BindableProperty.Create("MixedContentMode", typeof(MixedContentHandling), typeof(WebView), MixedContentHandling.NeverAllow);
-
- public static MixedContentHandling GetMixedContentMode(BindableObject element)
- {
- return (MixedContentHandling)element.GetValue(MixedContentModeProperty);
- }
-
- public static void SetMixedContentMode(BindableObject element, MixedContentHandling value)
- {
- element.SetValue(MixedContentModeProperty, value);
- }
-
- public static MixedContentHandling MixedContentMode(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetMixedContentMode(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetMixedContentMode(this IPlatformElementConfiguration<Android, FormsElement> config, MixedContentHandling value)
- {
- SetMixedContentMode(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty EnableZoomControlsProperty = BindableProperty.Create("EnableZoomControls", typeof(bool), typeof(FormsElement), false);
-
- public static bool GetEnableZoomControls(FormsElement element)
- {
- return (bool)element.GetValue(EnableZoomControlsProperty);
- }
-
- public static void SetEnableZoomControls(FormsElement element, bool value)
- {
- element.SetValue(EnableZoomControlsProperty, value);
- }
-
- public static void EnableZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetEnableZoomControls(config.Element, value);
- }
- public static bool ZoomControlsEnabled(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetEnableZoomControls(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetEnableZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetEnableZoomControls(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty DisplayZoomControlsProperty = BindableProperty.Create("DisplayZoomControls", typeof(bool), typeof(FormsElement), true);
-
- public static bool GetDisplayZoomControls(FormsElement element)
- {
- return (bool)element.GetValue(DisplayZoomControlsProperty);
- }
-
- public static void SetDisplayZoomControls(FormsElement element, bool value)
- {
- element.SetValue(DisplayZoomControlsProperty, value);
- }
-
- public static void DisplayZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetDisplayZoomControls(config.Element, value);
- }
-
- public static bool ZoomControlsDisplayed(this IPlatformElementConfiguration<Android, FormsElement> config)
- {
- return GetDisplayZoomControls(config.Element);
- }
-
- public static IPlatformElementConfiguration<Android, FormsElement> SetDisplayZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
- {
- SetDisplayZoomControls(config.Element, value);
- return config;
- }
- }
-}
namespace Xamarin.Forms.PlatformConfiguration
{
- public sealed class Android : IConfigPlatform { }
- public sealed class iOS : IConfigPlatform { }
- public sealed class Windows : IConfigPlatform { }
public sealed class Tizen : IConfigPlatform { }
- public sealed class macOS : IConfigPlatform { }
- public sealed class GTK : IConfigPlatform { }
}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.GTKSpecific
-{
- using FormsElement = Forms.BoxView;
-
- public static class BoxView
- {
- public static readonly BindableProperty HasCornerRadiusProperty =
- BindableProperty.Create("HasCornerRadius", typeof(bool),
- typeof(BoxView), default(bool));
-
- public static bool GetHasCornerRadius(BindableObject element)
- {
- return (bool)element.GetValue(HasCornerRadiusProperty);
- }
-
- public static void SetHasCornerRadius(BindableObject element, bool tabPosition)
- {
- element.SetValue(HasCornerRadiusProperty, tabPosition);
- }
-
- public static bool GetHasCornerRadius(
- this IPlatformElementConfiguration<GTK, FormsElement> config)
- {
- return GetHasCornerRadius(config.Element);
- }
-
- public static IPlatformElementConfiguration<GTK, FormsElement> SetHasCornerRadius(
- this IPlatformElementConfiguration<GTK, FormsElement> config, bool value)
- {
- SetHasCornerRadius(config.Element, value);
-
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.GTKSpecific
-{
- using FormsElement = Forms.NavigationPage;
-
- public static class NavigationPage
- {
- public static readonly BindableProperty BackButtonIconProperty =
- BindableProperty.Create("BackButtonIcon", typeof(string),
- typeof(NavigationPage), default(string));
-
- public static string GetBackButtonIcon(BindableObject element)
- {
- return (string)element.GetValue(BackButtonIconProperty);
- }
-
- public static void SetBackButtonIcon(BindableObject element, string backButtonIcon)
- {
- element.SetValue(BackButtonIconProperty, backButtonIcon);
- }
-
- public static string GetBackButtonIcon(
- this IPlatformElementConfiguration<GTK, FormsElement> config)
- {
- return GetBackButtonIcon(config.Element);
- }
-
- public static IPlatformElementConfiguration<GTK, FormsElement> SetBackButtonIcon(
- this IPlatformElementConfiguration<GTK, FormsElement> config, string value)
- {
- SetBackButtonIcon(config.Element, value);
-
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.GTKSpecific
-{
- public enum TabPosition
- {
- Default,
- Top,
- Bottom
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.GTKSpecific
-{
- using FormsElement = Forms.TabbedPage;
-
- public static class TabbedPage
- {
- public static readonly BindableProperty TabPositionProperty =
- BindableProperty.Create("TabPosition", typeof(TabPosition),
- typeof(TabbedPage), TabPosition.Default);
-
- public static TabPosition GetTabPosition(BindableObject element)
- {
- return (TabPosition)element.GetValue(TabPositionProperty);
- }
-
- public static void SetTabPosition(BindableObject element, TabPosition tabPosition)
- {
- element.SetValue(TabPositionProperty, tabPosition);
- }
-
- public static TabPosition GetTabPosition(
- this IPlatformElementConfiguration<GTK, FormsElement> config)
- {
- return GetTabPosition(config.Element);
- }
-
- public static IPlatformElementConfiguration<GTK, FormsElement> SetTabPosition(
- this IPlatformElementConfiguration<GTK, FormsElement> config, TabPosition value)
- {
- SetTabPosition(config.Element, value);
-
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms
-{
-
- public enum AccessKeyPlacement
- {
- Auto = 0,
- Top,
- Bottom,
- Right,
- Left,
- Center,
- }
-}
\ No newline at end of file
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- public enum CollapseStyle
- {
- Full,
- Partial
- }
-}
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.InputView;
-
- public static class InputView
- {
- public static readonly BindableProperty DetectReadingOrderFromContentProperty = BindableProperty.Create ("DetectReadingOrderFromContent", typeof (bool), typeof (FormsElement), false);
-
- public static void SetDetectReadingOrderFromContent (BindableObject element, bool value)
- {
- element.SetValue (DetectReadingOrderFromContentProperty, value);
- }
-
- public static bool GetDetectReadingOrderFromContent (this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (bool) config.Element.GetValue (DetectReadingOrderFromContentProperty);
- }
-
- public static bool GetDetectReadingOrderFromContent (BindableObject element)
- {
- return (bool) element.GetValue (DetectReadingOrderFromContentProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetDetectReadingOrderFromContent (
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- config.Element.SetValue (DetectReadingOrderFromContentProperty, value);
- return config;
- }
- }
-
-}
\ No newline at end of file
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.Label;
-
- public static class Label
- {
- public static readonly BindableProperty DetectReadingOrderFromContentProperty = BindableProperty.Create ("DetectReadingOrderFromContent", typeof (bool), typeof (FormsElement), false);
-
- public static void SetDetectReadingOrderFromContent (BindableObject element, bool value)
- {
- element.SetValue (DetectReadingOrderFromContentProperty, value);
- }
-
- public static bool GetDetectReadingOrderFromContent (this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (bool) config.Element.GetValue (DetectReadingOrderFromContentProperty);
- }
-
- public static bool GetDetectReadingOrderFromContent (BindableObject element)
- {
- return (bool) element.GetValue (DetectReadingOrderFromContentProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetDetectReadingOrderFromContent (
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- config.Element.SetValue (DetectReadingOrderFromContentProperty, value);
- return config;
- }
- }
-
-}
\ No newline at end of file
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.ListView;
-
- public static class ListView
- {
- #region SelectionMode
-
- public static readonly BindableProperty SelectionModeProperty =
- BindableProperty.CreateAttached("WindowsSelectionMode", typeof(ListViewSelectionMode),
- typeof(ListView), ListViewSelectionMode.Accessible);
-
- public static ListViewSelectionMode GetSelectionMode(BindableObject element)
- {
- return (ListViewSelectionMode)element.GetValue(SelectionModeProperty);
- }
-
- public static void SetSelectionMode(BindableObject element, ListViewSelectionMode value)
- {
- element.SetValue(SelectionModeProperty, value);
- }
-
- public static ListViewSelectionMode GetSelectionMode(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (ListViewSelectionMode)config.Element.GetValue(SelectionModeProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetSelectionMode(
- this IPlatformElementConfiguration<Windows, FormsElement> config, ListViewSelectionMode value)
- {
- config.Element.SetValue(SelectionModeProperty, value);
- return config;
- }
-
- #endregion
- }
-
- public enum ListViewSelectionMode
- {
- /// <summary>
- /// Allows ListItems to have TapGestures. The Enter key and Narrator will not fire the ItemTapped event.
- /// </summary>
- Inaccessible,
- /// <summary>
- /// Allows the Enter key and Narrator to fire the ItemTapped event. ListItems cannot have TapGestures.
- /// </summary>
- Accessible
- }
-}
\ No newline at end of file
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.MasterDetailPage;
-
- public static class MasterDetailPage
- {
- #region CollapsedStyle
-
- public static readonly BindableProperty CollapseStyleProperty =
- BindableProperty.CreateAttached("CollapseStyle", typeof(CollapseStyle),
- typeof(MasterDetailPage), CollapseStyle.Full);
-
- public static CollapseStyle GetCollapseStyle(BindableObject element)
- {
- return (CollapseStyle)element.GetValue(CollapseStyleProperty);
- }
-
- public static void SetCollapseStyle(BindableObject element, CollapseStyle collapseStyle)
- {
- element.SetValue(CollapseStyleProperty, collapseStyle);
- }
-
- public static CollapseStyle GetCollapseStyle(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (CollapseStyle)config.Element.GetValue(CollapseStyleProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetCollapseStyle(
- this IPlatformElementConfiguration<Windows, FormsElement> config, CollapseStyle value)
- {
- config.Element.SetValue(CollapseStyleProperty, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> UsePartialCollapse(
- this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- SetCollapseStyle(config, CollapseStyle.Partial);
- return config;
- }
-
- #endregion
-
- #region CollapsedPaneWidth
-
- public static readonly BindableProperty CollapsedPaneWidthProperty =
- BindableProperty.CreateAttached("CollapsedPaneWidth", typeof(double),
- typeof(MasterDetailPage), 48d, validateValue: (bindable, value) => (double)value >= 0);
-
- public static double GetCollapsedPaneWidth(BindableObject element)
- {
- return (double)element.GetValue(CollapsedPaneWidthProperty);
- }
-
- public static void SetCollapsedPaneWidth(BindableObject element, double collapsedPaneWidth)
- {
- element.SetValue(CollapsedPaneWidthProperty, collapsedPaneWidth);
- }
-
- public static double CollapsedPaneWidth(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (double)config.Element.GetValue(CollapsedPaneWidthProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> CollapsedPaneWidth(
- this IPlatformElementConfiguration<Windows, FormsElement> config, double value)
- {
- config.Element.SetValue(CollapsedPaneWidthProperty, value);
- return config;
- }
-
- #endregion
- }
-}
\ No newline at end of file
+++ /dev/null
-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<Windows, FormsElement> config)
- {
- return (ToolbarPlacement)config.Element.GetValue(ToolbarPlacementProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetToolbarPlacement(
- this IPlatformElementConfiguration<Windows, FormsElement> config, ToolbarPlacement value)
- {
- config.Element.SetValue(ToolbarPlacementProperty, value);
- return config;
- }
-
- #endregion
-
- #region ToolbarDynamicOverflowEnabled
-
- public static readonly BindableProperty ToolbarDynamicOverflowEnabledProperty =
- BindableProperty.CreateAttached("ToolbarDynamicOverflowEnabled", typeof(bool),
- typeof(FormsElement), true);
-
- public static bool GetToolbarDynamicOverflowEnabled(BindableObject element)
- {
- return (bool)element.GetValue(ToolbarDynamicOverflowEnabledProperty);
- }
-
- public static void SetToolbarDynamicOverflowEnabled(BindableObject element, bool value)
- {
- element.SetValue(ToolbarDynamicOverflowEnabledProperty, value);
- }
-
- public static bool GetToolbarDynamicOverflowEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (bool)config.Element.GetValue(ToolbarDynamicOverflowEnabledProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetToolbarDynamicOverflowEnabled(
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- config.Element.SetValue(ToolbarDynamicOverflowEnabledProperty, value);
- return config;
- }
-
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.RefreshView;
-
- public static class RefreshView
- {
- public enum RefreshPullDirection
- {
- LeftToRight,
- TopToBottom,
- RightToLeft,
- BottomToTop
- }
-
- public static readonly BindableProperty RefreshPullDirectionProperty = BindableProperty.Create("RefreshPullDirection", typeof(RefreshPullDirection), typeof(FormsElement), RefreshPullDirection.TopToBottom);
-
- public static void SetRefreshPullDirection(BindableObject element, RefreshPullDirection value)
- {
- element.SetValue(RefreshPullDirectionProperty, value);
- }
-
- public static RefreshPullDirection GetRefreshPullDirection(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetRefreshPullDirection(config.Element);
- }
-
- public static RefreshPullDirection GetRefreshPullDirection(BindableObject element)
- {
- return (RefreshPullDirection)element.GetValue(RefreshPullDirectionProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetRefreshPullDirection(
- this IPlatformElementConfiguration<Windows, FormsElement> config, RefreshPullDirection value)
- {
- SetRefreshPullDirection(config.Element, value);
- return config;
- }
- }
-
-}
\ No newline at end of file
+++ /dev/null
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.SearchBar;
-
- public static class SearchBar
- {
- public static readonly BindableProperty IsSpellCheckEnabledProperty =
- BindableProperty.Create("IsSpellCheckEnabled ", typeof(bool), typeof(SearchBar), false);
-
- public static void SetIsSpellCheckEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsSpellCheckEnabledProperty, value);
- }
-
- public static bool GetIsSpellCheckEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsSpellCheckEnabledProperty);
- }
-
- public static bool GetIsSpellCheckEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetIsSpellCheckEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetIsSpellCheckEnabled(
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- SetIsSpellCheckEnabled(config.Element, value);
- return config;
- }
-
- public static bool IsSpellCheckEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetIsSpellCheckEnabled(config.Element);
- }
-
- public static void EnableSpellCheck(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- SetIsSpellCheckEnabled(config.Element, true);
- }
-
- public static void DisableSpellCheck(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- SetIsSpellCheckEnabled(config.Element, false);
- }
- }
-}
+++ /dev/null
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.TabbedPage;
-
- public static class TabbedPage
- {
- public static readonly BindableProperty HeaderIconsEnabledProperty =
- BindableProperty.Create(nameof(HeaderIconsEnabledProperty), typeof(bool), typeof(TabbedPage), true);
-
- public static readonly BindableProperty HeaderIconsSizeProperty =
- BindableProperty.Create(nameof(HeaderIconsSizeProperty), typeof(Forms.Size), typeof(TabbedPage), new Forms.Size(16, 16));
-
- public static void SetHeaderIconsEnabled(BindableObject element, bool value)
- {
- element.SetValue(HeaderIconsEnabledProperty, value);
- }
-
- public static bool GetHeaderIconsEnabled(BindableObject element)
- {
- return (bool)element.GetValue(HeaderIconsEnabledProperty);
- }
-
- public static bool GetHeaderIconsEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetHeaderIconsEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetHeaderIconsEnabled(
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- SetHeaderIconsEnabled(config.Element, value);
- return config;
- }
-
- public static bool IsHeaderIconsEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetHeaderIconsEnabled(config.Element);
- }
-
- public static void EnableHeaderIcons(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- SetHeaderIconsEnabled(config.Element, true);
- }
-
- public static void DisableHeaderIcons(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- SetHeaderIconsEnabled(config.Element, false);
- }
-
- public static void SetHeaderIconsSize(BindableObject element, Forms.Size value)
- {
- element.SetValue(HeaderIconsSizeProperty, value);
- }
-
- public static Forms.Size GetHeaderIconsSize(BindableObject element)
- {
- return (Forms.Size)element.GetValue(HeaderIconsSizeProperty);
- }
-
- public static Forms.Size GetHeaderIconsSize(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetHeaderIconsSize(config.Element);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetHeaderIconsSize(
- this IPlatformElementConfiguration<Windows, FormsElement> config, Forms.Size value)
- {
- SetHeaderIconsSize(config.Element, value);
- return config;
- }
-
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- public enum ToolbarPlacement
- {
- /// <summary>
- /// Default will place the Toolbar at the bottom of the screen on phones and
- /// at the top of the screen on larger devices
- /// </summary>
- Default,
-
- /// <summary>
- /// Always place the Toolbar at the top of the screen
- /// </summary>
- Top,
-
- /// <summary>
- /// Always place the Toolbar at the bottom of the screen
- /// </summary>
- Bottom
- }
-
-
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.VisualElement;
-
- public static class VisualElement
- {
- public static readonly BindableProperty AccessKeyProperty =
- BindableProperty.Create("AccessKey", typeof(string), typeof(VisualElement));
-
- public static readonly BindableProperty AccessKeyPlacementProperty =
- BindableProperty.Create(nameof(AccessKeyPlacement), typeof(AccessKeyPlacement), typeof(VisualElement), AccessKeyPlacement.Auto);
-
- public static readonly BindableProperty AccessKeyHorizontalOffsetProperty =
- BindableProperty.Create("AccessKeyHorizontalOffset", typeof(double), typeof(FormsElement), 0.0);
-
- public static readonly BindableProperty AccessKeyVerticalOffsetProperty =
- BindableProperty.Create("AccessKeyVerticalOffset", typeof(double), typeof(FormsElement), 0.0);
-
- public static string GetAccessKey(BindableObject element) {
- return (string)element.GetValue(AccessKeyProperty);
- }
-
- public static void SetAccessKey(BindableObject element, string value) {
- element.SetValue(AccessKeyProperty, value);
- }
-
- public static string GetAccessKey(this IPlatformElementConfiguration<Windows, FormsElement> config) {
- return (string)config.Element.GetValue(AccessKeyProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKey(
- this IPlatformElementConfiguration<Windows, FormsElement> config, string value) {
- config.Element.SetValue(AccessKeyProperty, value);
- return config;
- }
-
- public static AccessKeyPlacement GetAccessKeyPlacement(BindableObject element) {
- return (AccessKeyPlacement)element.GetValue(AccessKeyPlacementProperty);
- }
- public static void SetAccessKeyPlacement(BindableObject element, AccessKeyPlacement value) {
- element.SetValue(AccessKeyPlacementProperty, value);
- }
- public static AccessKeyPlacement GetAccessKeyPlacement(this IPlatformElementConfiguration<Windows, FormsElement> config) {
- return (AccessKeyPlacement)config.Element.GetValue(AccessKeyPlacementProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyPlacement(
- this IPlatformElementConfiguration<Windows, FormsElement> config, AccessKeyPlacement value) {
- config.Element.SetValue(AccessKeyPlacementProperty, value);
- return config;
- }
- public static double GetAccessKeyHorizontalOffset(BindableObject element) {
- return (double)element.GetValue(AccessKeyHorizontalOffsetProperty);
- }
- public static void SetAccessKeyHorizontalOffset(BindableObject element, double value) {
- element.SetValue(AccessKeyHorizontalOffsetProperty, value);
- }
- public static double GetAccessKeyHorizontalOffset(this IPlatformElementConfiguration<Windows, FormsElement> config) {
- return (double)config.Element.GetValue(AccessKeyHorizontalOffsetProperty);
- }
- public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyHorizontalOffset(
- this IPlatformElementConfiguration<Windows, FormsElement> config, double value) {
- config.Element.SetValue(AccessKeyHorizontalOffsetProperty, value);
- return config;
- }
- public static double GetAccessKeyVerticalOffset(BindableObject element) {
- return (double)element.GetValue(AccessKeyVerticalOffsetProperty);
- }
- public static void SetAccessKeyVerticalOffset(BindableObject element, double value) {
- element.SetValue(AccessKeyVerticalOffsetProperty, value);
- }
- public static double GetAccessKeyVerticalOffset(this IPlatformElementConfiguration<Windows, FormsElement> config) {
- return (double)config.Element.GetValue(AccessKeyVerticalOffsetProperty);
- }
- public static IPlatformElementConfiguration<Windows, FormsElement> SetAccessKeyVerticalOffset(
- this IPlatformElementConfiguration<Windows, FormsElement> config, double value) {
- config.Element.SetValue(AccessKeyVerticalOffsetProperty, value);
- return config;
- }
- #region IsLegacyColorModeEnabled
-
- public static readonly BindableProperty IsLegacyColorModeEnabledProperty =
- BindableProperty.CreateAttached("IsLegacyColorModeEnabled", typeof(bool),
- typeof(FormsElement), true);
-
- public static bool GetIsLegacyColorModeEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static void SetIsLegacyColorModeEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsLegacyColorModeEnabledProperty, value);
- }
-
- public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return (bool)config.Element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetIsLegacyColorModeEnabled(
- this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- config.Element.SetValue(IsLegacyColorModeEnabledProperty, value);
- return config;
- }
-
- #endregion
- }
-}
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.WindowsSpecific
-{
- using FormsElement = Forms.WebView;
-
- public static class WebView
- {
- public static readonly BindableProperty IsJavaScriptAlertEnabledProperty = BindableProperty.Create("IsJavaScriptAlertEnabled", typeof(bool), typeof(WebView), false);
-
- public static bool GetIsJavaScriptAlertEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsJavaScriptAlertEnabledProperty);
- }
-
- public static void SetIsJavaScriptAlertEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsJavaScriptAlertEnabledProperty, value);
- }
-
- public static bool IsJavaScriptAlertEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config)
- {
- return GetIsJavaScriptAlertEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<Windows, FormsElement> SetIsJavaScriptAlertEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config, bool value)
- {
- SetIsJavaScriptAlertEnabled(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.Application;
-
- public static class Application
- {
- #region PanGestureRecognizerShouldRecognizeSimultaneously
- public static readonly BindableProperty PanGestureRecognizerShouldRecognizeSimultaneouslyProperty = BindableProperty.Create("PanGestureRecognizerShouldRecognizeSimultaneously", typeof(bool), typeof(Application), false);
-
- public static bool GetPanGestureRecognizerShouldRecognizeSimultaneously(BindableObject element)
- {
- return (bool)element.GetValue(PanGestureRecognizerShouldRecognizeSimultaneouslyProperty);
- }
-
- public static void SetPanGestureRecognizerShouldRecognizeSimultaneously(BindableObject element, bool value)
- {
- element.SetValue(PanGestureRecognizerShouldRecognizeSimultaneouslyProperty, value);
- }
-
- public static bool GetPanGestureRecognizerShouldRecognizeSimultaneously(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetPanGestureRecognizerShouldRecognizeSimultaneously(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetPanGestureRecognizerShouldRecognizeSimultaneously(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetPanGestureRecognizerShouldRecognizeSimultaneously(config.Element, value);
- return config;
- }
- #endregion
-
- #region HandleControlUpdatesOnMainThread
- public static readonly BindableProperty HandleControlUpdatesOnMainThreadProperty = BindableProperty.Create("HandleControlUpdatesOnMainThread", typeof(bool), typeof(Application), false);
-
- public static bool GetHandleControlUpdatesOnMainThread(BindableObject element)
- {
- return (bool)element.GetValue(HandleControlUpdatesOnMainThreadProperty);
- }
-
- public static void SetHandleControlUpdatesOnMainThread(BindableObject element, bool value)
- {
- element.SetValue(HandleControlUpdatesOnMainThreadProperty, value);
- }
-
- public static bool GetHandleControlUpdatesOnMainThread(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetHandleControlUpdatesOnMainThread(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetHandleControlUpdatesOnMainThread(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetHandleControlUpdatesOnMainThread(config.Element, value);
- return config;
- }
- #endregion
-
- #region EnableAccessibilityScalingForNamedFontSizes
- public static readonly BindableProperty EnableAccessibilityScalingForNamedFontSizesProperty = BindableProperty.Create("EnableAccessibilityScalingForNamedFontSizes", typeof(bool), typeof(Application), true);
-
- public static bool GetEnableAccessibilityScalingForNamedFontSizes(BindableObject element)
- {
- return (bool)element.GetValue(EnableAccessibilityScalingForNamedFontSizesProperty);
- }
-
- public static void SetEnableAccessibilityScalingForNamedFontSizes(BindableObject element, bool value)
- {
- element.SetValue(EnableAccessibilityScalingForNamedFontSizesProperty, value);
- }
-
- public static bool GetEnableAccessibilityScalingForNamedFontSizes(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetEnableAccessibilityScalingForNamedFontSizes(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetEnableAccessibilityScalingForNamedFontSizes(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetEnableAccessibilityScalingForNamedFontSizes(config.Element, value);
- return config;
- }
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
-
- public enum BlurEffectStyle
- {
- None,
- /// <summary>
- /// Available in iOS 8.0 and later.
- /// </summary>
- ExtraLight,
- /// <summary>
- /// Available in iOS 8.0 and later.
- /// </summary>
- Light,
- /// <summary>
- /// Available in iOS 8.0 and later.
- /// </summary>
- Dark
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.Cell;
-
- public static class Cell
- {
- public static readonly BindableProperty DefaultBackgroundColorProperty = BindableProperty.Create(nameof(DefaultBackgroundColor), typeof(Color), typeof(Cell), Color.Default);
-
- public static Color GetDefaultBackgroundColor(BindableObject element)
- => (Color) element.GetValue(DefaultBackgroundColorProperty);
-
- public static void SetDefaultBackgroundColor(BindableObject element, Color value)
- => element.SetValue(DefaultBackgroundColorProperty, value);
-
- public static Color DefaultBackgroundColor(this IPlatformElementConfiguration<iOS, FormsElement> config)
- => GetDefaultBackgroundColor(config.Element);
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetDefaultBackgroundColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value)
- {
- SetDefaultBackgroundColor(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-using System;
-
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.Entry;
-
- public static class Entry
- {
- public static readonly BindableProperty AdjustsFontSizeToFitWidthProperty =
- BindableProperty.Create("AdjustsFontSizeToFitWidth", typeof(bool),
- typeof(Entry), false);
- public static readonly BindableProperty CursorColorProperty = BindableProperty.Create("CursorColor", typeof(Color), typeof(Entry), Color.Default);
-
- public static bool GetAdjustsFontSizeToFitWidth(BindableObject element)
- {
- return (bool)element.GetValue(AdjustsFontSizeToFitWidthProperty);
- }
-
- public static void SetAdjustsFontSizeToFitWidth(BindableObject element, bool value)
- {
- element.SetValue(AdjustsFontSizeToFitWidthProperty, value);
- }
-
- public static bool AdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetAdjustsFontSizeToFitWidth(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetAdjustsFontSizeToFitWidth(
- this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetAdjustsFontSizeToFitWidth(config.Element, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> EnableAdjustsFontSizeToFitWidth(
- this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- SetAdjustsFontSizeToFitWidth(config.Element, true);
- return config;
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> DisableAdjustsFontSizeToFitWidth(
- this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- SetAdjustsFontSizeToFitWidth(config.Element, false);
- return config;
- }
-
- public static Color GetCursorColor(BindableObject element)
- {
- return (Color)element.GetValue(CursorColorProperty);
- }
-
- public static void SetCursorColor(BindableObject element, Color value)
- {
- element.SetValue(CursorColorProperty, value);
- }
-
- public static Color GetCursorColor(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetCursorColor(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetCursorColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value)
- {
- SetCursorColor(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum GroupHeaderStyle
- {
- Plain,
- Grouped
- }
-}
+++ /dev/null
-using System;
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum LargeTitleDisplayMode
- {
- Automatic,
- Always,
- Never
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.ListView;
-
- public static class ListView
- {
- public static readonly BindableProperty SeparatorStyleProperty = BindableProperty.Create(nameof(SeparatorStyle), typeof(SeparatorStyle), typeof(FormsElement), SeparatorStyle.Default);
-
- public static SeparatorStyle GetSeparatorStyle(BindableObject element)
- {
- return (SeparatorStyle)element.GetValue(SeparatorStyleProperty);
- }
-
- public static void SetSeparatorStyle(BindableObject element, SeparatorStyle value)
- {
- element.SetValue(SeparatorStyleProperty, value);
- }
-
- public static SeparatorStyle GetSeparatorStyle(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetSeparatorStyle(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetSeparatorStyle(this IPlatformElementConfiguration<iOS, FormsElement> config, SeparatorStyle value)
- {
- SetSeparatorStyle(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty GroupHeaderStyleProperty = BindableProperty.Create(nameof(GroupHeaderStyle), typeof(GroupHeaderStyle), typeof(FormsElement), GroupHeaderStyle.Plain);
-
- public static GroupHeaderStyle GetGroupHeaderStyle(BindableObject element)
- {
- return (GroupHeaderStyle)element.GetValue(GroupHeaderStyleProperty);
- }
-
- public static void SetGroupHeaderStyle(BindableObject element, GroupHeaderStyle value)
- {
- element.SetValue(GroupHeaderStyleProperty, value);
- }
-
- public static GroupHeaderStyle GetGroupHeaderStyle(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetGroupHeaderStyle(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetGroupHeaderStyle(this IPlatformElementConfiguration<iOS, FormsElement> config, GroupHeaderStyle value)
- {
- SetGroupHeaderStyle(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty RowAnimationsEnabledProperty = BindableProperty.Create(nameof(RowAnimationsEnabled), typeof(bool), typeof(ListView), true);
-
- public static bool GetRowAnimationsEnabled(BindableObject element)
- {
- return (bool)element.GetValue(RowAnimationsEnabledProperty);
- }
-
- public static void SetRowAnimationsEnabled(BindableObject element, bool value)
- {
- element.SetValue(RowAnimationsEnabledProperty, value);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetRowAnimationsEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetRowAnimationsEnabled(config.Element, value);
- return config;
- }
-
- public static bool RowAnimationsEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetRowAnimationsEnabled(config.Element);
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.NavigationPage;
-
- public static class NavigationPage
- {
- #region Translucent
- public static readonly BindableProperty IsNavigationBarTranslucentProperty =
- BindableProperty.Create("IsNavigationBarTranslucent", typeof(bool),
- typeof(NavigationPage), false);
-
- public static bool GetIsNavigationBarTranslucent(BindableObject element)
- {
- return (bool)element.GetValue(IsNavigationBarTranslucentProperty);
- }
-
- public static void SetIsNavigationBarTranslucent(BindableObject element, bool value)
- {
- element.SetValue(IsNavigationBarTranslucentProperty, value);
- }
-
- public static bool IsNavigationBarTranslucent(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetIsNavigationBarTranslucent(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetIsNavigationBarTranslucent(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetIsNavigationBarTranslucent(config.Element, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> EnableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- SetIsNavigationBarTranslucent(config.Element, true);
- return config;
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> DisableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- SetIsNavigationBarTranslucent(config.Element, false);
- return config;
- }
- #endregion
-
-
- #region StatusBarTextColorMode
- public static readonly BindableProperty StatusBarTextColorModeProperty =
- BindableProperty.Create("StatusBarColorTextMode", typeof(StatusBarTextColorMode),
- typeof(NavigationPage), StatusBarTextColorMode.MatchNavigationBarTextLuminosity);
-
- public static StatusBarTextColorMode GetStatusBarTextColorMode(BindableObject element)
- {
- return (StatusBarTextColorMode)element.GetValue(StatusBarTextColorModeProperty);
- }
-
- public static void SetStatusBarTextColorMode(BindableObject element, StatusBarTextColorMode value)
- {
- element.SetValue(StatusBarTextColorModeProperty, value);
- }
-
- public static StatusBarTextColorMode GetStatusBarTextColorMode(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetStatusBarTextColorMode(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetStatusBarTextColorMode(this IPlatformElementConfiguration<iOS, FormsElement> config, StatusBarTextColorMode value)
- {
- SetStatusBarTextColorMode(config.Element, value);
- return config;
- }
- #endregion
-
- #region PrefersLargeTitles
- public static readonly BindableProperty PrefersLargeTitlesProperty = BindableProperty.Create(nameof(PrefersLargeTitles), typeof(bool), typeof(Page), false);
-
- public static bool GetPrefersLargeTitles(BindableObject element)
- {
- return (bool)element.GetValue(PrefersLargeTitlesProperty);
- }
-
- public static void SetPrefersLargeTitles(BindableObject element, bool value)
- {
- element.SetValue(PrefersLargeTitlesProperty, value);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetPrefersLargeTitles(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetPrefersLargeTitles(config.Element, value);
- return config;
- }
-
- public static bool PrefersLargeTitles(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetPrefersLargeTitles(config.Element);
- }
- #endregion
-
- #region HideNavigationBarSeparator
- public static readonly BindableProperty HideNavigationBarSeparatorProperty = BindableProperty.Create(nameof(HideNavigationBarSeparator), typeof(bool), typeof(Page), false);
-
- public static bool GetHideNavigationBarSeparator(BindableObject element)
- {
- return (bool)element.GetValue(HideNavigationBarSeparatorProperty);
- }
-
- public static void SetHideNavigationBarSeparator(BindableObject element, bool value)
- {
- element.SetValue(HideNavigationBarSeparatorProperty, value);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetHideNavigationBarSeparator(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetHideNavigationBarSeparator(config.Element, value);
- return config;
- }
-
- public static bool HideNavigationBarSeparator(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetHideNavigationBarSeparator(config.Element);
- }
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using System.ComponentModel;
- using FormsElement = Forms.Page;
-
- public static class Page
- {
- public static readonly BindableProperty PrefersStatusBarHiddenProperty =
- BindableProperty.Create("PrefersStatusBarHidden", typeof(StatusBarHiddenMode), typeof(Page), StatusBarHiddenMode.Default);
-
- public static StatusBarHiddenMode GetPrefersStatusBarHidden(BindableObject element)
- {
- return (StatusBarHiddenMode)element.GetValue(PrefersStatusBarHiddenProperty);
- }
-
- public static void SetPrefersStatusBarHidden(BindableObject element, StatusBarHiddenMode value)
- {
- element.SetValue(PrefersStatusBarHiddenProperty, value);
- }
-
- public static StatusBarHiddenMode PrefersStatusBarHidden(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetPrefersStatusBarHidden(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetPrefersStatusBarHidden(this IPlatformElementConfiguration<iOS, FormsElement> config, StatusBarHiddenMode value)
- {
- SetPrefersStatusBarHidden(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty PreferredStatusBarUpdateAnimationProperty =
- BindableProperty.Create("PreferredStatusBarUpdateAnimation", typeof(UIStatusBarAnimation), typeof(Page), UIStatusBarAnimation.None);
-
- public static UIStatusBarAnimation GetPreferredStatusBarUpdateAnimation(BindableObject element)
- {
- return (UIStatusBarAnimation)element.GetValue(PreferredStatusBarUpdateAnimationProperty);
- }
-
- public static void SetPreferredStatusBarUpdateAnimation(BindableObject element, UIStatusBarAnimation value)
- {
- if (value == UIStatusBarAnimation.Fade)
- element.SetValue(PreferredStatusBarUpdateAnimationProperty, value);
- else if (value == UIStatusBarAnimation.Slide)
- element.SetValue(PreferredStatusBarUpdateAnimationProperty, value);
- else
- element.SetValue(PreferredStatusBarUpdateAnimationProperty, value);
- }
-
- public static UIStatusBarAnimation PreferredStatusBarUpdateAnimation(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetPreferredStatusBarUpdateAnimation(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetPreferredStatusBarUpdateAnimation(this IPlatformElementConfiguration<iOS, FormsElement> config, UIStatusBarAnimation value)
- {
- SetPreferredStatusBarUpdateAnimation(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty UseSafeAreaProperty = BindableProperty.Create("UseSafeArea", typeof(bool), typeof(Page), false);
-
- public static bool GetUseSafeArea(BindableObject element)
- {
- return (bool)element.GetValue(UseSafeAreaProperty);
- }
-
- public static void SetUseSafeArea(BindableObject element, bool value)
- {
- element.SetValue(UseSafeAreaProperty, value);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetUseSafeArea(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetUseSafeArea(config.Element, value);
- return config;
- }
-
- public static bool UsingSafeArea(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetUseSafeArea(config.Element);
- }
-
- public static readonly BindableProperty LargeTitleDisplayProperty = BindableProperty.Create(nameof(LargeTitleDisplay), typeof(LargeTitleDisplayMode), typeof(Page), LargeTitleDisplayMode.Automatic);
-
- public static LargeTitleDisplayMode GetLargeTitleDisplay(BindableObject element)
- {
- return (LargeTitleDisplayMode)element.GetValue(LargeTitleDisplayProperty);
- }
-
- public static void SetLargeTitleDisplay(BindableObject element, LargeTitleDisplayMode value)
- {
- element.SetValue(LargeTitleDisplayProperty, value);
- }
-
- public static LargeTitleDisplayMode LargeTitleDisplay(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetLargeTitleDisplay(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetLargeTitleDisplay(this IPlatformElementConfiguration<iOS, FormsElement> config, LargeTitleDisplayMode value)
- {
- SetLargeTitleDisplay(config.Element, value);
- return config;
- }
-
- static readonly BindablePropertyKey SafeAreaInsetsPropertyKey = BindableProperty.CreateReadOnly(nameof(SafeAreaInsets), typeof(Thickness), typeof(Page), default(Thickness));
-
- public static readonly BindableProperty SafeAreaInsetsProperty = SafeAreaInsetsPropertyKey.BindableProperty;
-
- public static Thickness GetSafeAreaInsets(BindableObject element)
- {
- return (Thickness)element.GetValue(SafeAreaInsetsProperty);
- }
-
- static void SetSafeAreaInsets(BindableObject element, Thickness value)
- {
- element.SetValue(SafeAreaInsetsPropertyKey, value);
- }
-
- public static Thickness SafeAreaInsets(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetSafeAreaInsets(config.Element);
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static IPlatformElementConfiguration<iOS, FormsElement> SetSafeAreaInsets(this IPlatformElementConfiguration<iOS, FormsElement> config, Thickness value)
- {
- SetSafeAreaInsets(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ModalPresentationStyleProperty =
- BindableProperty.Create(nameof(ModalPresentationStyle), typeof(UIModalPresentationStyle), typeof(Page), UIModalPresentationStyle.FullScreen);
-
- public static UIModalPresentationStyle ModalPresentationStyle(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetModalPresentationStyle(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetModalPresentationStyle(this IPlatformElementConfiguration<iOS, FormsElement> config, UIModalPresentationStyle value)
- {
- SetModalPresentationStyle(config.Element, value);
- return config;
- }
-
- public static UIModalPresentationStyle GetModalPresentationStyle(BindableObject element)
- {
- return (UIModalPresentationStyle)element.GetValue(ModalPresentationStyleProperty);
- }
-
- static void SetModalPresentationStyle(BindableObject element, UIModalPresentationStyle value)
- {
- element.SetValue(ModalPresentationStyleProperty, value);
- }
-
- public static readonly BindableProperty PrefersHomeIndicatorAutoHiddenProperty =
- BindableProperty.Create(nameof(PrefersHomeIndicatorAutoHidden), typeof(bool), typeof(Page), false);
-
- public static bool GetPrefersHomeIndicatorAutoHidden(BindableObject element)
- {
- return (bool)element.GetValue(PrefersHomeIndicatorAutoHiddenProperty);
- }
-
- public static void SetPrefersHomeIndicatorAutoHidden(BindableObject element, bool value)
- {
- element.SetValue(PrefersHomeIndicatorAutoHiddenProperty, value);
- }
-
- public static bool PrefersHomeIndicatorAutoHidden(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetPrefersHomeIndicatorAutoHidden(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetPrefersHomeIndicatorAutoHidden(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetPrefersHomeIndicatorAutoHidden(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.Picker;
-
- public static class Picker
- {
- public static readonly BindableProperty UpdateModeProperty = BindableProperty.Create(nameof(UpdateMode), typeof(UpdateMode), typeof(Picker), default(UpdateMode));
-
- public static UpdateMode GetUpdateMode(BindableObject element)
- {
- return (UpdateMode)element.GetValue(UpdateModeProperty);
- }
-
- public static void SetUpdateMode(BindableObject element, UpdateMode value)
- {
- element.SetValue(UpdateModeProperty, value);
- }
-
- public static UpdateMode UpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetUpdateMode(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetUpdateMode(this IPlatformElementConfiguration<iOS, FormsElement> config, UpdateMode value)
- {
- SetUpdateMode(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.ScrollView;
-
- public static class ScrollView
- {
- public static readonly BindableProperty ShouldDelayContentTouchesProperty = BindableProperty.Create(nameof(ShouldDelayContentTouches), typeof(bool), typeof(ScrollView), true);
-
- public static bool GetShouldDelayContentTouches(BindableObject element)
- {
- return (bool)element.GetValue(ShouldDelayContentTouchesProperty);
- }
-
- public static void SetShouldDelayContentTouches(BindableObject element, bool value)
- {
- element.SetValue(ShouldDelayContentTouchesProperty, value);
- }
-
- public static bool ShouldDelayContentTouches(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetShouldDelayContentTouches(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetShouldDelayContentTouches(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetShouldDelayContentTouches(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum SeparatorStyle
- {
- Default,
- FullWidth
- }
-
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.Slider;
-
- public static class Slider
- {
- public static readonly BindableProperty UpdateOnTapProperty = BindableProperty.Create("UpdateOnTap", typeof(bool), typeof(Slider), false);
-
- public static bool GetUpdateOnTap(BindableObject element)
- {
- return (bool)element.GetValue(UpdateOnTapProperty);
- }
-
- public static void SetUpdateOnTap(BindableObject element, bool value)
- {
- element.SetValue(UpdateOnTapProperty, value);
- }
-
- public static bool GetUpdateOnTap(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetUpdateOnTap(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetUpdateOnTap(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetUpdateOnTap(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum StatusBarHiddenMode
- {
- Default,
- True,
- False
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum StatusBarTextColorMode
- {
- MatchNavigationBarTextLuminosity,
- DoNotAdjust
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using FormsElement = Forms.SwipeView;
-
- public enum SwipeTransitionMode
- {
- Reveal = 0,
- Drag = 1
- }
-
- public static class SwipeView
- {
- public static readonly BindableProperty SwipeTransitionModeProperty = BindableProperty.Create("SwipeTransitionMode", typeof(SwipeTransitionMode), typeof(SwipeView), SwipeTransitionMode.Reveal);
-
- public static SwipeTransitionMode GetSwipeTransitionMode(BindableObject element)
- {
- return (SwipeTransitionMode)element.GetValue(SwipeTransitionModeProperty);
- }
-
- public static void SetSwipeTransitionMode(BindableObject element, SwipeTransitionMode value)
- {
- element.SetValue(SwipeTransitionModeProperty, value);
- }
-
- public static SwipeTransitionMode GetSwipeTransitionMode(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetSwipeTransitionMode(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetSwipeTransitionMode(this IPlatformElementConfiguration<iOS, FormsElement> config, SwipeTransitionMode value)
- {
- SetSwipeTransitionMode(config.Element, value);
- return config;
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum UIModalPresentationStyle
- {
- FullScreen,
- FormSheet
- }
-}
\ No newline at end of file
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum UIStatusBarAnimation
- {
- None,
- Slide,
- Fade
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- public enum UpdateMode
- {
- Immediately,
- WhenFinished
- }
-}
\ No newline at end of file
+++ /dev/null
-
-namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
-{
- using System;
- using FormsElement = Forms.VisualElement;
-
- public static class VisualElement
- {
- public static readonly BindableProperty BlurEffectProperty = BindableProperty.Create("BlurEffect", typeof(BlurEffectStyle), typeof(VisualElement), BlurEffectStyle.None);
-
- public static BlurEffectStyle GetBlurEffect(BindableObject element)
- {
- return (BlurEffectStyle)element.GetValue(BlurEffectProperty);
- }
-
- public static void SetBlurEffect(BindableObject element, BlurEffectStyle value)
- {
- element.SetValue(BlurEffectProperty, value);
- }
-
- public static BlurEffectStyle GetBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetBlurEffect(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> UseBlurEffect(this IPlatformElementConfiguration<iOS, FormsElement> config, BlurEffectStyle value)
- {
- SetBlurEffect(config.Element, value);
- return config;
- }
-
- #region Shadow Settings
-
- public class ShadowEffect : RoutingEffect
- {
- public ShadowEffect() : base("Xamarin.ShadowEffect") { }
- }
-
- public static readonly BindableProperty IsShadowEnabledProperty =
- BindableProperty.Create("IsShadowEnabled", typeof(bool),
- typeof(VisualElement), false, propertyChanged: OnIsShadowEnabledChanged);
-
- static void OnIsShadowEnabledChanged(BindableObject bindable, object oldValue, object newValue)
- {
- var visualElement = bindable as FormsElement;
- var enabled = (bool)newValue;
- if (enabled)
- {
- visualElement.Effects.Add(new ShadowEffect());
- }
- else
- {
- foreach (var effect in visualElement.Effects)
- {
- if (effect is ShadowEffect)
- {
- visualElement.Effects.Remove(effect);
- break;
- }
- }
- }
- }
-
- public static bool GetIsShadowEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsShadowEnabledProperty);
- }
-
- public static void SetIsShadowEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsShadowEnabledProperty, value);
- }
-
- public static bool GetIsShadowEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetIsShadowEnabled(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetIsShadowEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetIsShadowEnabled(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowColorProperty =
- BindableProperty.Create("ShadowColor", typeof(Color),
- typeof(VisualElement), Color.Default);
-
- public static Color GetShadowColor(BindableObject element)
- {
- return (Color)element.GetValue(ShadowColorProperty);
- }
-
- public static void SetShadowColor(BindableObject element, Color value)
- {
- element.SetValue(ShadowColorProperty, value);
- }
-
- public static Color GetShadowColor(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetShadowColor(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value)
- {
- SetShadowColor(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowRadiusProperty =
- BindableProperty.Create("ShadowRadius", typeof(double),
- typeof(VisualElement), 10.0);
-
- public static double GetShadowRadius(BindableObject element)
- {
- return (double)element.GetValue(ShadowRadiusProperty);
- }
-
- public static void SetShadowRadius(BindableObject element, double value)
- {
- element.SetValue(ShadowRadiusProperty, value);
- }
-
- public static double GetShadowRadius(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetShadowRadius(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowRadius(this IPlatformElementConfiguration<iOS, FormsElement> config, double value)
- {
- SetShadowRadius(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowOffsetProperty =
- BindableProperty.Create("ShadowOffset", typeof(Size),
- typeof(VisualElement), Size.Zero);
-
- public static Size GetShadowOffset(BindableObject element)
- {
- return (Size)element.GetValue(ShadowOffsetProperty);
- }
-
- public static void SetShadowOffset(BindableObject element, Size value)
- {
- element.SetValue(ShadowOffsetProperty, value);
- }
-
- public static Size GetShadowOffset(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetShadowOffset(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowOffset(this IPlatformElementConfiguration<iOS, FormsElement> config, Size value)
- {
- SetShadowOffset(config.Element, value);
- return config;
- }
-
- public static readonly BindableProperty ShadowOpacityProperty =
- BindableProperty.Create("ShadowOpacity", typeof(double),
- typeof(VisualElement), 0.5);
-
- public static double GetShadowOpacity(BindableObject element)
- {
- return (double)element.GetValue(ShadowOpacityProperty);
- }
-
- public static void SetShadowOpacity(BindableObject element, double value)
- {
- element.SetValue(ShadowOpacityProperty, value);
- }
-
- public static double GetShadowOpacity(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetShadowOpacity(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetShadowOpacity(this IPlatformElementConfiguration<iOS, FormsElement> config, double value)
- {
- SetShadowOpacity(config.Element, value);
- return config;
- }
-
- #endregion
-
- #region IsLegacyColorModeEnabled
-
- public static readonly BindableProperty IsLegacyColorModeEnabledProperty =
- BindableProperty.CreateAttached("IsLegacyColorModeEnabled", typeof(bool),
- typeof(FormsElement), true);
-
- public static bool GetIsLegacyColorModeEnabled(BindableObject element)
- {
- return (bool)element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static void SetIsLegacyColorModeEnabled(BindableObject element, bool value)
- {
- element.SetValue(IsLegacyColorModeEnabledProperty, value);
- }
-
- public static bool GetIsLegacyColorModeEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return (bool)config.Element.GetValue(IsLegacyColorModeEnabledProperty);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetIsLegacyColorModeEnabled(
- this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- config.Element.SetValue(IsLegacyColorModeEnabledProperty, value);
- return config;
- }
-
- #endregion
-
- public static readonly BindableProperty CanBecomeFirstResponderProperty = BindableProperty.Create(nameof(CanBecomeFirstResponder), typeof(bool), typeof(VisualElement), false);
-
- public static bool GetCanBecomeFirstResponder(BindableObject element)
- {
- return (bool)element.GetValue(CanBecomeFirstResponderProperty);
- }
-
- public static void SetCanBecomeFirstResponder(BindableObject element, bool value)
- {
- element.SetValue(CanBecomeFirstResponderProperty, value);
- }
-
- public static bool CanBecomeFirstResponder(this IPlatformElementConfiguration<iOS, FormsElement> config)
- {
- return GetCanBecomeFirstResponder(config.Element);
- }
-
- public static IPlatformElementConfiguration<iOS, FormsElement> SetCanBecomeFirstResponder(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
- {
- SetCanBecomeFirstResponder(config.Element, value);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.macOSSpecific
-{
- using FormsElement = Forms.NavigationPage;
-
- public static class NavigationPage
- {
- public static readonly BindableProperty NavigationTransitionPushStyleProperty = BindableProperty.Create("NavigationTransitionPushStyle", typeof(NavigationTransitionStyle), typeof(NavigationPage), NavigationTransitionStyle.SlideForward);
- public static readonly BindableProperty NavigationTransitionPopStyleProperty = BindableProperty.Create("NavigationTransitionPopStyle", typeof(NavigationTransitionStyle), typeof(NavigationPage), NavigationTransitionStyle.SlideBackward);
-
- #region PushStyle
- public static NavigationTransitionStyle GetNavigationTransitionPushStyle(BindableObject element)
- {
- return (NavigationTransitionStyle)element.GetValue(NavigationTransitionPushStyleProperty);
- }
-
- public static void SetNavigationTransitionPushStyle(BindableObject element, NavigationTransitionStyle value)
- {
- element.SetValue(NavigationTransitionPushStyleProperty, value);
- }
-
- public static NavigationTransitionStyle GetNavigationTransitionPushStyle(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- return GetNavigationTransitionPushStyle(config.Element);
- }
- #endregion
-
- #region PopStyle
- public static NavigationTransitionStyle GetNavigationTransitionPopStyle(BindableObject element)
- {
- return (NavigationTransitionStyle)element.GetValue(NavigationTransitionPopStyleProperty);
- }
-
- public static void SetNavigationTransitionPopStyle(BindableObject element, NavigationTransitionStyle value)
- {
- element.SetValue(NavigationTransitionPopStyleProperty, value);
- }
-
- public static NavigationTransitionStyle GetNavigationTransitionPopStyle(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- return GetNavigationTransitionPopStyle(config.Element);
- }
- #endregion
-
- public static void SetNavigationTransitionStyle(BindableObject element, NavigationTransitionStyle pushStyle, NavigationTransitionStyle popStyle)
- {
- SetNavigationTransitionPushStyle(element, pushStyle);
- SetNavigationTransitionPopStyle(element, popStyle);
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> SetNavigationTransitionStyle(this IPlatformElementConfiguration<macOS, FormsElement> config, NavigationTransitionStyle pushStyle, NavigationTransitionStyle popStyle)
- {
- SetNavigationTransitionStyle(config.Element, pushStyle, popStyle);
- return config;
- }
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.macOSSpecific
-{
- public enum NavigationTransitionStyle
- {
- None,
- Crossfade,
- SlideUp,
- SlideDown,
- SlideLeft,
- SlideRight,
- SlideForward,
- SlideBackward
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.macOSSpecific
-{
- using FormsElement = Forms.Page;
-
- public static class Page
- {
- #region TabsStyle
- public static readonly BindableProperty TabOrderProperty = BindableProperty.Create("TabOrder", typeof(VisualElement[]), typeof(Page), null);
-
- public static VisualElement[] GetTabOrder(BindableObject element)
- {
- return (VisualElement[])element.GetValue(TabOrderProperty);
- }
-
- public static void SetTabOrder(BindableObject element, params VisualElement[] value)
- {
- element.SetValue(TabOrderProperty, value);
- }
-
- public static VisualElement[] GetTabOrder(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- return GetTabOrder(config.Element);
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> SetTabOrder(this IPlatformElementConfiguration<macOS, FormsElement> config, params VisualElement[] value)
- {
- SetTabOrder(config.Element, value);
- return config;
- }
- #endregion
- }
-}
+++ /dev/null
-namespace Xamarin.Forms.PlatformConfiguration.macOSSpecific
-{
- using FormsElement = Forms.TabbedPage;
-
- public static class TabbedPage
- {
- #region TabsStyle
- public static readonly BindableProperty TabsStyleProperty = BindableProperty.Create("TabsStyle", typeof(TabsStyle), typeof(TabbedPage), TabsStyle.Default);
-
- public static TabsStyle GetTabsStyle(BindableObject element)
- {
- return (TabsStyle)element.GetValue(TabsStyleProperty);
- }
-
- public static void SetTabsStyle(BindableObject element, TabsStyle value)
- {
- element.SetValue(TabsStyleProperty, value);
- }
-
- public static TabsStyle GetTabsStyle(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- return GetTabsStyle(config.Element);
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> SetShowTabs(this IPlatformElementConfiguration<macOS, FormsElement> config, TabsStyle value)
- {
- SetTabsStyle(config.Element, value);
- return config;
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> ShowTabsOnNavigation(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- SetTabsStyle(config.Element, TabsStyle.OnNavigation);
- return config;
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> ShowTabs(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- SetTabsStyle(config.Element, TabsStyle.Default);
- return config;
- }
-
- public static IPlatformElementConfiguration<macOS, FormsElement> HideTabs(this IPlatformElementConfiguration<macOS, FormsElement> config)
- {
- SetTabsStyle(config.Element, TabsStyle.Hidden);
- return config;
- }
- #endregion
- }
-}
+++ /dev/null
-using System;
-namespace Xamarin.Forms
-{
- public enum TabsStyle
- {
- Default = 0,
- Hidden = 1,
- Icons = 2,
- OnNavigation = 3,
- OnBottom = 4
- }
-}