summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs b/Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs
new file mode 100644
index 00000000..956079ea
--- /dev/null
+++ b/Xamarin.Forms.Platform.Tizen/NativeValueConverterService.cs
@@ -0,0 +1,20 @@
+´╗┐using System;
+
+using EObject = ElmSharp.EvasObject;
+
+namespace Xamarin.Forms.Platform.Tizen
+{
+ class NativeValueConverterService : Xaml.INativeValueConverterService
+ {
+ public bool ConvertTo(object value, Type toType, out object nativeValue)
+ {
+ nativeValue = null;
+ if (typeof(EObject).IsInstanceOfType(value) && toType.IsAssignableFrom(typeof(View)))
+ {
+ nativeValue = ((EObject)value).ToView();
+ return true;
+ }
+ return false;
+ }
+ }
+}