bitwarden-android/src/UWP/IconConverter.cs

24 lines
609 B
C#
Raw Normal View History

2017-10-03 19:11:09 +03:00
using System;
using Windows.UI.Xaml.Data;
namespace Bit.UWP
{
public class IconConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
if(value != null && value is Xamarin.Forms.FileImageSource)
{
return ((Xamarin.Forms.FileImageSource)value).File;
}
return null;
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
}
}