Modify Style WindowManager

Jan 26, 2011 at 2:20 PM
Edited Jan 26, 2011 at 2:24 PM

Hi, I'm Newbie with Silverlight Micro

 I'm implementing a test application; I'm using the WindowManager - ShowDialog to show a modal dialog and it's working correctly:

 

 var wm = new WindowManager();
wm.ShowDialog(new ModalDialogViewModel {DisplayName="Test Dialog"});

   The modal dialog is displayed using a simple Style, now I want to modify, by example, the color for the title's foreground.
   I'm supposing that this can be done using a style, but I dont know what properties I can use or how can I modify that value

Regards

 

Coordinator
Jan 26, 2011 at 2:54 PM

In Silverlight you can create a default style for the ChildWindow control to do that. If you need the color to change on a per-view-model basis, then you need to create some sort of property on your view model that you can bind to from inside a custom ChildWindow control template.

Jan 26, 2011 at 5:04 PM

Thanks, It's exactly what I need XD