blob: 72d124dbce7e6ff9f7f9d48790d34b929233ef24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml.Internals;
using EObject = ElmSharp.EvasObject;
namespace Xamarin.Forms.Platform.Tizen
{
class NativeValueConverterService : 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;
}
}
}
|