예제 #1
0
        public MainWindow()
        {
            ImageCodecManager.RegisterDecoder <WindowsMetafileFormatImageDecoder>(new WindowsMetafileFormatImageDecoder());

            InitializeComponent();

            this.DataContext = new ExampleViewModel();
        }
예제 #2
0
        public MainWindow()
        {
            // This will register the WindowsMetafileFormatImageDecoder. You should use this if you use DevCraft versions earlier than R1 2017.
            // From R1 2017 this decoder will be built-in for ImageCodedManager class which is used internally.
            ImageCodecManager.RegisterDecoder <WindowsMetafileFormatImageDecoder>(new WindowsMetafileFormatImageDecoder());

            InitializeComponent();

            this.DataContext = new ExampleViewModel();
        }