diff options
author | WonYoung Choi <wy80.choi@samsung.com> | 2017-04-14 12:56:04 +0900 |
---|---|---|
committer | WonYoung Choi <wy80.choi@samsung.com> | 2017-04-14 13:02:14 +0900 |
commit | dfad930cda60996d4ea4efc8b021a1c37b64c5f4 (patch) | |
tree | c2b40385975f8cb94a16df44bd51d32847bf0058 /Xamarin.Forms.Core | |
parent | 9ab25fd9ed9c2215de11d9e6baba43d52a809130 (diff) | |
download | xamarin-forms-dfad930cda60996d4ea4efc8b021a1c37b64c5f4.tar.gz xamarin-forms-dfad930cda60996d4ea4efc8b021a1c37b64c5f4.tar.bz2 xamarin-forms-dfad930cda60996d4ea4efc8b021a1c37b64c5f4.zip |
Fix FocusDirection to string typesubmit/tizen/20170414.040359accepted/tizen/unified/20170414.163622
Fix FocusDirection to string type to avoid invalid reference in Tizen.Xamarin.Forms.Extension
Change-Id: Ie452f14a32dbe0b5776ab28996eb52c81e8223c4
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/FocusDirection.cs | 16 | ||||
-rw-r--r-- | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs | 12 |
2 files changed, 14 insertions, 14 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/FocusDirection.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/FocusDirection.cs index b4f15e12..9a15c5df 100644 --- a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/FocusDirection.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/FocusDirection.cs @@ -3,14 +3,14 @@ using System.ComponentModel; namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific { [EditorBrowsable(EditorBrowsableState.Never)] - public enum FocusDirection + public static class FocusDirection { - None, - Back, - Forward, - Up, - Down, - Right, - Left + public const string None = "None"; + public const string Back = "Back"; + public const string Forward = "Forward"; + public const string Up = "Up"; + public const string Down = "Down"; + public const string Right = "Right"; + public const string Left = "Left"; } }
\ No newline at end of file diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs index 40c7d75e..a7e7eff6 100644 --- a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs @@ -10,7 +10,7 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific public static readonly BindableProperty IsFocusAllowedProperty = BindableProperty.Create("IsFocusAllowed", typeof(bool), typeof(VisualElement), true); [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty NextFocusDirectionProperty = BindableProperty.Create("NextFocusDirection", typeof(FocusDirection), typeof(VisualElement), FocusDirection.None, propertyChanged: OnNextFocusDirectionPropertyChanged); + public static readonly BindableProperty NextFocusDirectionProperty = BindableProperty.Create("NextFocusDirection", typeof(string), typeof(VisualElement), FocusDirection.None, propertyChanged: OnNextFocusDirectionPropertyChanged); public static readonly BindableProperty NextFocusUpViewProperty = BindableProperty.Create("NextFocusUpView", typeof(View), typeof(VisualElement), default(View)); @@ -67,25 +67,25 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific } [EditorBrowsable(EditorBrowsableState.Never)] - public static FocusDirection GetNextFocusDirection(BindableObject element) + public static string GetNextFocusDirection(BindableObject element) { - return (FocusDirection)element.GetValue(NextFocusDirectionProperty); + return (string)element.GetValue(NextFocusDirectionProperty); } [EditorBrowsable(EditorBrowsableState.Never)] - public static void SetNextFocusDirection(BindableObject element, FocusDirection value) + public static void SetNextFocusDirection(BindableObject element, string value) { element.SetValue(NextFocusDirectionProperty, value); } [EditorBrowsable(EditorBrowsableState.Never)] - public static FocusDirection GetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config) + public static string GetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config) { return GetNextFocusDirection(config.Element); } [EditorBrowsable(EditorBrowsableState.Never)] - public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config, FocusDirection value) + public static IPlatformElementConfiguration<Tizen, FormsElement> SetNextFocusDirection(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value) { SetNextFocusDirection(config.Element, value); return config; |