summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
diff options
context:
space:
mode:
authorrina6350.you <rina6350.you@samsung.com>2017-04-14 13:52:05 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:23 +0900
commit2e7be85cf19c1db5417b3ea030428413b26bc46c (patch)
tree6da34f9ae0d224c65f866bfe363c234a0aa9e38e /Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
parent4e8a17c819bf091bcafe0853aa27be1b8f432f6c (diff)
downloadxamarin-forms-2e7be85cf19c1db5417b3ea030428413b26bc46c.tar.gz
xamarin-forms-2e7be85cf19c1db5417b3ea030428413b26bc46c.tar.bz2
xamarin-forms-2e7be85cf19c1db5417b3ea030428413b26bc46c.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.Platform.Tizen/Renderers/VisualElementRenderer.cs')
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
index a103abf7..8b288698 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
@@ -66,6 +66,7 @@ namespace Xamarin.Forms.Platform.Tizen
RegisterPropertyHandler(Specific.NextFocusRightViewProperty, UpdateFocusRightView);
RegisterPropertyHandler(Specific.NextFocusBackViewProperty, UpdateFocusBackView);
RegisterPropertyHandler(Specific.NextFocusForwardViewProperty, UpdateFocusForwardView);
+ RegisterPropertyHandler(Specific.ToolTipProperty, UpdateToolTip);
RegisterPropertyHandler(VisualElement.AnchorXProperty, ApplyTransformation);
RegisterPropertyHandler(VisualElement.AnchorYProperty, ApplyTransformation);
@@ -835,6 +836,19 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
+ void UpdateToolTip()
+ {
+ var tooltip = Specific.GetToolTip(Element);
+ if (tooltip != null)
+ {
+ NativeView.SetTooltipText(tooltip);
+ }
+ else
+ {
+ NativeView.UnsetTooltip();
+ }
+ }
+
void SetNextFocusViewInternal(string direction)
{
var widget = NativeView as Widget;