mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
24 lines
609 B
C#
24 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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|