diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-11-18 06:38:30 -0600 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2016-11-18 13:38:30 +0100 |
commit | b2e2a8ff2a768e01fd8ee155c519de4bee310fb3 (patch) | |
tree | fb3c3453a30712ec06c0bd7388d037042a34cecf | |
parent | 78518ce5cf9b05d4e9583c09cd5cc6256c74843c (diff) | |
download | xamarin-forms-b2e2a8ff2a768e01fd8ee155c519de4bee310fb3.tar.gz xamarin-forms-b2e2a8ff2a768e01fd8ee155c519de4bee310fb3.tar.bz2 xamarin-forms-b2e2a8ff2a768e01fd8ee155c519de4bee310fb3.zip |
Platform specifics naming adjustments (#526)
7 files changed, 43 insertions, 43 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/EntryPageiOS.cs b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/EntryPageiOS.cs index 88936786..9093c3b2 100644 --- a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/EntryPageiOS.cs +++ b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/EntryPageiOS.cs @@ -23,7 +23,7 @@ namespace Xamarin.Forms.Controls.GalleryPages.PlatformSpecificsGalleries new Button { Text = "Toggle AdjustsFontSizeToFitWidth", - Command = new Command(() => entry.On<iOS>().SetAdjustsFontSizeToFitWidth(!entry.On<iOS>().AdjustsFontSizeToFitWidth())) + Command = new Command(() => entry.On<iOS>().SetAdjustsFontSizeToFitWidthEnabled(!entry.On<iOS>().IsAdjustsFontSizeToFitWidthEnabled())) } } }; diff --git a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageAndroid.cs b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageAndroid.cs index ab1904a4..dff3b292 100644 --- a/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageAndroid.cs +++ b/Xamarin.Forms.Controls/GalleryPages/PlatformSpecificsGalleries/TabbedPageAndroid.cs @@ -18,7 +18,7 @@ namespace Xamarin.Forms.Controls.GalleryPages.PlatformSpecificsGalleries Children.Add(CreateAdditonalPage()); Children.Add(CreateAdditonalPage()); Children.Add(CreateAdditonalPage()); - On<Android>().SetOffscreenPageLimitProperty(2); + On<Android>().SetOffscreenPageLimit(2); } ContentPage CreateFirstPage(ICommand restore) diff --git a/Xamarin.Forms.Core/PlatformConfiguration/AndroidSpecific/TabbedPage.cs b/Xamarin.Forms.Core/PlatformConfiguration/AndroidSpecific/TabbedPage.cs index 5cec97eb..dc4d1e1a 100644 --- a/Xamarin.Forms.Core/PlatformConfiguration/AndroidSpecific/TabbedPage.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/AndroidSpecific/TabbedPage.cs @@ -45,24 +45,24 @@ BindableProperty.Create("OffscreenPageLimit", typeof(int), typeof(TabbedPage), 3, validateValue: (binding, value) => (int)value >= 0); - public static int GetOffscreenPageLimitProperty(BindableObject element) + public static int GetOffscreenPageLimit(BindableObject element) { return (int)element.GetValue(OffscreenPageLimitProperty); } - public static void SetOffscreenPageLimitProperty(BindableObject element, int value) + public static void SetOffscreenPageLimit(BindableObject element, int value) { element.SetValue(OffscreenPageLimitProperty, value); } public static int OffscreenPageLimit(this IPlatformElementConfiguration<Android, FormsElement> config) { - return GetOffscreenPageLimitProperty(config.Element); + return GetOffscreenPageLimit(config.Element); } - public static IPlatformElementConfiguration<Android, FormsElement> SetOffscreenPageLimitProperty(this IPlatformElementConfiguration<Android, FormsElement> config, int value) + public static IPlatformElementConfiguration<Android, FormsElement> SetOffscreenPageLimit(this IPlatformElementConfiguration<Android, FormsElement> config, int value) { - SetOffscreenPageLimitProperty(config.Element, value); + SetOffscreenPageLimit(config.Element, value); return config; } } diff --git a/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/Entry.cs b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/Entry.cs index ddd1d635..494bb124 100644 --- a/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/Entry.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/Entry.cs @@ -7,7 +7,7 @@ namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific public static class Entry { public static readonly BindableProperty AdjustsFontSizeToFitWidthProperty = - BindableProperty.Create("AdjustsFontSizeToFitWidth", typeof(bool), + BindableProperty.Create("AdjustsFontSizeToFitWidthEnabled", typeof(bool), typeof(Entry), false); public static bool GetAdjustsFontSizeToFitWidth(BindableObject element) @@ -20,12 +20,12 @@ namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific element.SetValue(AdjustsFontSizeToFitWidthProperty, value); } - public static bool AdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config) + public static bool IsAdjustsFontSizeToFitWidthEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config) { return GetAdjustsFontSizeToFitWidth(config.Element); } - public static IPlatformElementConfiguration<iOS, FormsElement> SetAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) + public static IPlatformElementConfiguration<iOS, FormsElement> SetAdjustsFontSizeToFitWidthEnabled(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value) { SetAdjustsFontSizeToFitWidth(config.Element, value); return config; diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs index c56060ae..e4536cf8 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs @@ -144,7 +144,7 @@ namespace Xamarin.Forms.Platform.iOS void UpdateAdjustsFontSizeToFitWidth() { - Control.AdjustsFontSizeToFitWidth = Element.OnThisPlatform().AdjustsFontSizeToFitWidth(); + Control.AdjustsFontSizeToFitWidth = Element.OnThisPlatform().IsAdjustsFontSizeToFitWidthEnabled(); } void UpdateFont() diff --git a/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.AndroidSpecific/TabbedPage.xml b/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.AndroidSpecific/TabbedPage.xml index 2784df9f..6ab33705 100644 --- a/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.AndroidSpecific/TabbedPage.xml +++ b/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.AndroidSpecific/TabbedPage.xml @@ -74,9 +74,9 @@ <remarks>To be added.</remarks> </Docs> </Member> - <Member MemberName="GetOffscreenPageLimitProperty"> - <MemberSignature Language="C#" Value="public static int GetOffscreenPageLimitProperty (Xamarin.Forms.BindableObject element);" /> - <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetOffscreenPageLimitProperty(class Xamarin.Forms.BindableObject element) cil managed" /> + <Member MemberName="GetOffscreenPageLimit"> + <MemberSignature Language="C#" Value="public static int GetOffscreenPageLimit (Xamarin.Forms.BindableObject element);" /> + <MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetOffscreenPageLimit(class Xamarin.Forms.BindableObject element) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> @@ -207,9 +207,9 @@ <remarks>To be added.</remarks> </Docs> </Member> - <Member MemberName="SetOffscreenPageLimitProperty"> - <MemberSignature Language="C#" Value="public static void SetOffscreenPageLimitProperty (Xamarin.Forms.BindableObject element, int value);" /> - <MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetOffscreenPageLimitProperty(class Xamarin.Forms.BindableObject element, int32 value) cil managed" /> + <Member MemberName="SetOffscreenPageLimit"> + <MemberSignature Language="C#" Value="public static void SetOffscreenPageLimit (Xamarin.Forms.BindableObject element, int value);" /> + <MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetOffscreenPageLimit(class Xamarin.Forms.BindableObject element, int32 value) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> @@ -228,9 +228,9 @@ <remarks>To be added.</remarks> </Docs> </Member> - <Member MemberName="SetOffscreenPageLimitProperty"> - <MemberSignature Language="C#" Value="public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.TabbedPage> SetOffscreenPageLimitProperty (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.TabbedPage> config, int value);" /> - <MemberSignature Language="ILAsm" Value=".method public static hidebysig class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.Android, class Xamarin.Forms.TabbedPage> SetOffscreenPageLimitProperty(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.Android, class Xamarin.Forms.TabbedPage> config, int32 value) cil managed" /> + <Member MemberName="SetOffscreenPageLimit"> + <MemberSignature Language="C#" Value="public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.TabbedPage> SetOffscreenPageLimit (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.Android,Xamarin.Forms.TabbedPage> config, int value);" /> + <MemberSignature Language="ILAsm" Value=".method public static hidebysig class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.Android, class Xamarin.Forms.TabbedPage> SetOffscreenPageLimit(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.Android, class Xamarin.Forms.TabbedPage> config, int32 value) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> diff --git a/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.iOSSpecific/Entry.xml b/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.iOSSpecific/Entry.xml index 1671146f..980c24bd 100644 --- a/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.iOSSpecific/Entry.xml +++ b/docs/Xamarin.Forms.Core/Xamarin.Forms.PlatformConfiguration.iOSSpecific/Entry.xml @@ -14,26 +14,6 @@ <remarks>To be added.</remarks> </Docs> <Members> - <Member MemberName="AdjustsFontSizeToFitWidth"> - <MemberSignature Language="C#" Value="public static bool AdjustsFontSizeToFitWidth (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> config);" /> - <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool AdjustsFontSizeToFitWidth(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> config) cil managed" /> - <MemberType>Method</MemberType> - <AssemblyInfo> - <AssemblyVersion>2.0.0.0</AssemblyVersion> - </AssemblyInfo> - <ReturnValue> - <ReturnType>System.Boolean</ReturnType> - </ReturnValue> - <Parameters> - <Parameter Name="config" Type="Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry>" RefType="this" /> - </Parameters> - <Docs> - <param name="config">To be added.</param> - <summary>To be added.</summary> - <returns>To be added.</returns> - <remarks>To be added.</remarks> - </Docs> - </Member> <Member MemberName="AdjustsFontSizeToFitWidthProperty"> <MemberSignature Language="C#" Value="public static readonly Xamarin.Forms.BindableProperty AdjustsFontSizeToFitWidthProperty;" /> <MemberSignature Language="ILAsm" Value=".field public static initonly class Xamarin.Forms.BindableProperty AdjustsFontSizeToFitWidthProperty" /> @@ -109,6 +89,26 @@ <remarks>To be added.</remarks> </Docs> </Member> + <Member MemberName="IsAdjustsFontSizeToFitWidthEnabled"> + <MemberSignature Language="C#" Value="public static bool IsAdjustsFontSizeToFitWidthEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> config);" /> + <MemberSignature Language="ILAsm" Value=".method public static hidebysig bool IsAdjustsFontSizeToFitWidthEnabled(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> config) cil managed" /> + <MemberType>Method</MemberType> + <AssemblyInfo> + <AssemblyVersion>2.0.0.0</AssemblyVersion> + </AssemblyInfo> + <ReturnValue> + <ReturnType>System.Boolean</ReturnType> + </ReturnValue> + <Parameters> + <Parameter Name="config" Type="Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry>" RefType="this" /> + </Parameters> + <Docs> + <param name="config">To be added.</param> + <summary>To be added.</summary> + <returns>To be added.</returns> + <remarks>To be added.</remarks> + </Docs> + </Member> <Member MemberName="SetAdjustsFontSizeToFitWidth"> <MemberSignature Language="C#" Value="public static void SetAdjustsFontSizeToFitWidth (Xamarin.Forms.BindableObject element, bool value);" /> <MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetAdjustsFontSizeToFitWidth(class Xamarin.Forms.BindableObject element, bool value) cil managed" /> @@ -130,9 +130,9 @@ <remarks>To be added.</remarks> </Docs> </Member> - <Member MemberName="SetAdjustsFontSizeToFitWidth"> - <MemberSignature Language="C#" Value="public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> SetAdjustsFontSizeToFitWidth (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> config, bool value);" /> - <MemberSignature Language="ILAsm" Value=".method public static hidebysig class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> SetAdjustsFontSizeToFitWidth(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> config, bool value) cil managed" /> + <Member MemberName="SetAdjustsFontSizeToFitWidthEnabled"> + <MemberSignature Language="C#" Value="public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> SetAdjustsFontSizeToFitWidthEnabled (this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.Entry> config, bool value);" /> + <MemberSignature Language="ILAsm" Value=".method public static hidebysig class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> SetAdjustsFontSizeToFitWidthEnabled(class Xamarin.Forms.IPlatformElementConfiguration`2<class Xamarin.Forms.PlatformConfiguration.iOS, class Xamarin.Forms.Entry> config, bool value) cil managed" /> <MemberType>Method</MemberType> <AssemblyInfo> <AssemblyVersion>2.0.0.0</AssemblyVersion> |