Acessing window's elements

Mar 7, 2013 at 2:51 PM
Is there any way to access titlebar or other elements of main window in code ( add some custom controls or change existing )?
Mar 7, 2013 at 6: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.