rrhartjr
rrhartjr

Reputation: 2114

WPF: Show new window using XAML

Is there a way to launch a new window in WPF using XAML? Or does it have to be done from code behind?

Upvotes: 2

Views: 817

Answers (2)

Robin
Robin

Reputation: 1022

I believe it can only be done from code-behind because window is a root-level element.

Upvotes: 0

Szymon Rozga
Szymon Rozga

Reputation: 18168

You have to do it from code behind.

Upvotes: 3

Related Questions