Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Unloaded disposes Window #4

@code-beans

Description

@code-beans

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions