Acessing window's elements

Mar 7, 2013 at 1:51 PM
Is there any way to access titlebar or other elements of main window in code ( add some custom controls or change existing )?
Coordinator
Mar 7, 2013 at 5:25 PM
You can access the ModernWindow instance that is hosting your user control as follows (where this is your usercontrol instance);
var wnd = Window.GetWindow(this) as ModernWindow;
if (wnd != null) {
  ..
}
If you need to change the appearance of the ModernWindow you probably want to create a ModernWindow ControlTemplate and assign it to your ModernWindow instances.