I cant clear out if this is a winform issue or WPF. Heres my issue. I have a windows form window which contains an element host where I call a WPF UserControl Class. In the winform window I have a "Back" button which takes me
back to another winform. When I click to go again inside the previous window with the WPF component, the memory usage of the application rises. But this is not my main concern. My main issue is that as many times I click back and open that
window again, so much in number of WPF components I have in my program, which means that when I click to save a product in the database, that product is being saved multiple times. I tried solutions like disposing the winform, disposing the elementhost
of the winform but no luck. What should we do in such situations??
Thanks