Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unloaded disposes Window #4

Open
code-beans opened this issue Oct 17, 2018 · 0 comments
Open

Unloaded disposes Window #4

code-beans opened this issue Oct 17, 2018 · 0 comments

Comments

@code-beans
Copy link

The Loaded and Unloaded events are frequently used when embedding the WpfSharpDxControl in other controls. Right now invoking the Unloaded event will also invoke Dispose() on the WpfSharpDxControl thus terminates the Win32 Window and frees any resources (device,rendertarget,etc.).
When the Loaded event is invoked again (by other parent controls) and the Rendering=true flag is set rendering will throw exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant