tags:

views:

43

answers:

1

Hi guys,
Is there any way to write the ShowDialog window method (e.g. driversWindow.ShowDialog();) via Xaml?
I want that pressing a button will open a dialog window define in the Xaml code
Thanks
Eran

A: 

In general if you want to call a method on an object in XAML you wrap the object with ObjectDataProvider and then use MethodName property to call the method.

http://msdn.microsoft.com/en-us/library/system.windows.data.objectdataprovider.aspx

NVM