Hi,
Is it possible to style an application's main window so that it looks just like a xamDialogWindow? And can this be done without having to copy/paste the entire styles? The user should be able to switch between themes, so simply copy pasting resource dictionaries doesn't seem like the answer.
I was already thinking that maybe the main window's style could be completely removed (no borders, transparent background), and then wrap all window content in a XamDialogWindow. But then I would have to "rewire" all dialog operations to the actual window and vice versa, and I don't know whether this is possible. (e.g. how would I resize the dialog window beyond the borders of the actual window?) Or is this simply not the right approach?
Regards, Stefan
Hello Stefan and thank you for posting!
I have been looking into your scenario and if you want to style the MainWindow to look like XamDialogWindow you can use the default XamDialogWindow style located in the generic.xaml in the Infragistics folder on your machine: C:\Program Files (x86)\Infragistics\2013.2\WPF\DefaultStyles\DialogWindow and modify the default MainWindow style. You may have a look at this forum thread at MSDN forums for additional details in customizing the MainWindow: http://social.msdn.microsoft.com/Forums/vstudio/en-US/14b568f8-da8a-418f-884a-4fbfdd1e37f6/wpf-window-templates?forum=wpf.