mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 19:08:32 +03:00
23 lines
609 B
C#
23 lines
609 B
C#
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();
|
|
}
|
|
}
|
|
}
|