RomanKovalev
RomanKovalev

Reputation: 859

How to open window from xaml without code-behind

I have other-window.xaml file and trying to open this from window.xaml on button click. How did it without code-behind?

Upvotes: 0

Views: 1127

Answers (1)

brunnerh
brunnerh

Reputation: 184516

You could define the window as a non-shared resource and write an Interactivity TriggerAction that resolves the resource and calls Show on the window. That action can then be used in the combination with an Interactivity EventTrigger on Click.

Upvotes: 2

Related Questions