public MainWindow() { InitializeComponent(); model = new ClassificationVM(); this.DataContext = model; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(null); } if (value is Blob rawUri && targetType == typeof(IBitmap)) { return(ClassificationVM.ByteArrayToImage(rawUri.Bytes)); } throw new NotSupportedException(); }