예제 #1
0
 public void RemoveCustomTitleBar()
 {
     if (customTitleBar != null)
     { 
         this.Content = customTitleBar.SetPageContent(null);
         customTitleBar = null;
     }
 }
예제 #2
0
 public void AddCustomTitleBar()
 {
     if (customTitleBar == null)
     {
         customTitleBar = new CustomTitleBar();
         customTitleBar.EnableControlsInTitleBar(areControlsInTitleBar);
         UIElement mainContent = this.Content;
         this.Content = null;
         customTitleBar.SetPageContent(mainContent);
         this.Content = customTitleBar;
     }
 }