I added a WPF project to my solution which contained one project - a Winforms one. Then I referenced the WPF project from the Winforms one and added the appropriate references. I then created a new WPF Window in the original Winforms project and opened it from within a button event handler. It worked fine.
HOWEVER,
in the past when searching for a similar solution I don't remember seeing this solution mentioned (of simply adding another project to the solution) so I was wondering: Are there pitfalls when adding a WPF Window to a Winforms app?
EDIT
I'm not referring to embedding it inside a Form. Just a separate Window (perhaps instead of the main Form). And I'm also not referring to challenges that are apparent such as the need to translate Bitmaps to their WPF equivalents. I'm only referring to pitfalls that are not noticed, where the app compiles and seems to run, but, for example, later when being executed on a machine with a different DPI - shows things incorrectly.
SystemAware
). If it was not already DpiAware, that is. Except that, not much. Unless when you say adding a WPF Window you mean embed it. If that's the case, I don't know, I've never done it. – JimiINotifyPropertyChanged
are compatible and fully functional in both Frameworks. The BindingSource class works very well with this kind of objects, when a DataTable is not available. – Jimi