summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
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-04-24 13:39:51 +0900
commit009dc7e81299c1c45ad3a7ce5ad3ad9161177c8e (patch)
tree3871b0f1c8d4d9534df07248dcb427e1bffa0b7f /Xamarin.Forms.Platform.Tizen
parent164ffa38acb59a8a762636ce350c720316255c30 (diff)
downloadxamarin-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.Platform.Tizen')
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs14
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj2
2 files changed, 15 insertions, 1 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;
diff --git a/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj b/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
index 26d62846..9a13995c 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
+++ b/Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj
@@ -6,7 +6,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="ElmSharp" Version="1.1.0-beta-018" />
+ <PackageReference Include="ElmSharp" Version="1.1.0-beta-021" />
<PackageReference Include="System.Runtime.Serialization.Xml" Version="4.3.0" />
<PackageReference Include="Tizen.Applications" Version="1.3.2" />
<PackageReference Include="Tizen.System.Information" Version="1.0.2" />