blob: 956079ea49beac39b3991bee78ab0695bca0ed59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}
}
}
|