diff options
author | rina6350.you <rina6350.you@samsung.com> | 2017-04-14 13:52:05 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 13:39:51 +0900 |
commit | 009dc7e81299c1c45ad3a7ce5ad3ad9161177c8e (patch) | |
tree | 3871b0f1c8d4d9534df07248dcb427e1bffa0b7f /Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs | |
parent | 164ffa38acb59a8a762636ce350c720316255c30 (diff) | |
download | xamarin-forms-009dc7e81299c1c45ad3a7ce5ad3ad9161177c8e.tar.gz xamarin-forms-009dc7e81299c1c45ad3a7ce5ad3ad9161177c8e.tar.bz2 xamarin-forms-009dc7e81299c1c45ad3a7ce5ad3ad9161177c8e.zip |
Add ToolTip based on Tizen Specific
* Update the version of the used elm-sharp.
* Update the version of xamarin package to 2.3.4-r214-005.
TASK=TCAPI-2259
change-Id: I1f0c65c3d67030b7a690fd0839a0a851c4f1bcba
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs')
-rwxr-xr-x[-rw-r--r--] | Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs index a7e7eff6..6e3d456c 100644..100755 --- a/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs +++ b/Xamarin.Forms.Core/PlatformConfiguration/TizenSpecific/VisualElement.cs @@ -24,6 +24,8 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific public static readonly BindableProperty NextFocusForwardViewProperty = BindableProperty.Create("NextFocusForwardView", typeof(View), typeof(VisualElement), default(View)); + public static readonly BindableProperty ToolTipProperty = BindableProperty.Create("ToolTip", typeof(string), typeof(VisualElement), default(string)); + public static string GetStyle(BindableObject element) { return (string)element.GetValue(StyleProperty); @@ -257,5 +259,26 @@ namespace Xamarin.Forms.PlatformConfiguration.TizenSpecific { bindable.SetValue(NextFocusDirectionProperty, FocusDirection.None); } + + public static string GetToolTip(BindableObject element) + { + return (string)element.GetValue(ToolTipProperty); + } + + public static void SetToolTip(BindableObject element, string value) + { + element.SetValue(ToolTipProperty, value); + } + + public static string GetToolTip(this IPlatformElementConfiguration<Tizen, FormsElement> config) + { + return GetToolTip(config.Element); + } + + public static IPlatformElementConfiguration<Tizen, FormsElement> SetToolTip(this IPlatformElementConfiguration<Tizen, FormsElement> config, string value) + { + SetToolTip(config.Element, value); + return config; + } } }
\ No newline at end of file |