Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            model            = new ClassificationVM();
            this.DataContext = model;
        }
Esempio n. 2
0
        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();
        }