EnableControlsInTitleBar() public method

public EnableControlsInTitleBar ( bool enable ) : void
enable bool
return void
Ejemplo n.º 1
0
        public void AddCustomTitleBar()
        {
            if (customTitleBar == null)
            {
                customTitleBar = new CustomTitleBar();
                customTitleBar.EnableControlsInTitleBar(areControlsInTitleBar);

                // Make the main page's content a child of the title bar,
                // and make the title bar the new page content.
                UIElement mainContent = this.Content;
                this.Content = null;
                customTitleBar.SetPageContent(mainContent);
                this.Content = customTitleBar;
            }
        }
        public void AddCustomTitleBar()
        {
            if (customTitleBar == null)
            {
                customTitleBar = new CustomTitleBar();
                customTitleBar.EnableControlsInTitleBar(areControlsInTitleBar);

                // Make the main page's content a child of the title bar,
                // and make the title bar the new page content.
                UIElement mainContent = this.Content;
                this.Content = null;
                customTitleBar.SetPageContent(mainContent);
                this.Content = customTitleBar;
            }
        }