We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Platform : WPF
Category : Window

How do I load a Window from a XAML file dynamically?

You can load a xaml file dynamically as follows: Note that any code-behind associated with the above xaml will not be loaded/processed.

In case, you have an assembly reference to a custom dll in the above xaml file, you should reference that assembly with a fully qualified namespace as follows: The above assembly should then be present in the GAC for the runtime to find it.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.