and again thanks for the complex answer.
Yes I was about to use WPF because I want to create a small application which communicates via TwinCat.Ads. When getting triggered it should snap and save the image to the hard drive.
This project is not in hurry but I want to slowly get known to CVB since the old software is also done with CVB but the old GenICamExample with WinForms which is kinda buggy with the Forms Designer and additionally I like to work with up 2 date software.
But back to the topic: I just converted some mp4 to avi and tried to load that with CVB.Net for Wpf FileDialogs class. That throw an exception but it is always empty, also the inner exception is empty, very weird.
I will try by just using DeviceFactory.Open() when I am home. Thanks for your great explanation and for taking the time
Edit: Okay, I tried it out, and got it finally working, inspired by the GenICam WPF example I have a solid base now.
I am not yet familiar enough with WPF to know the most basic stuff, to be exact, dependency properties are still a mystery to me but I am learning it.
I created a class inheriting from DependencyObject called DeviceDependency defining the DeviceDependency Property.
In my ViewModel I am instantiating this class and the View Binds to the DeviceImage of that DependencyProperty. Whenever I click a button (for now) it calls Device.Stream.GetSnapshotAsync() and that seems to work fine with a .AVI file now. I guess later when I got a camera, discovering it with the GenApi.vin driver and then using it like I was using the AVI now with GetSnapshot will work the same way ?! But that is something for future, just wanted to explore a little how everything is working. Now figuring out if it’s disposing everything fine as later this program has to handle and save at least 20-30 images per minute to hard disk.
Thanks again for helping me out