C# Class TitleBarApp1.CustomTitleBar

Inheritance: Windows.UI.Xaml.Controls.UserControl, INotifyPropertyChanged
Mostra file Open project: Myfreedom614/UWP-Samples Class Usage Examples

Public Methods

Method Description
CustomTitleBar ( ) : System
EnableControlsInTitleBar ( bool enable ) : void
SetPageContent ( UIElement newContent ) : UIElement

Private Methods

Method Description
CustomTitleBar_Loaded ( object sender, RoutedEventArgs e ) : void
CustomTitleBar_Unloaded ( object sender, RoutedEventArgs e ) : void
OnIsVisibleChanged ( CoreApplicationViewTitleBar sender, object e ) : void
OnLayoutMetricsChanged ( CoreApplicationViewTitleBar sender, object e ) : void
OnWindowSizeChanged ( object sender, WindowSizeChangedEventArgs e ) : void
UpdateLayoutMetrics ( ) : void
UpdatePositionAndVisibility ( ) : void

Method Details

CustomTitleBar() public method

public CustomTitleBar ( ) : System
return System

EnableControlsInTitleBar() public method

public EnableControlsInTitleBar ( bool enable ) : void
enable bool
return void

SetPageContent() public method

public SetPageContent ( UIElement newContent ) : UIElement
newContent Windows.UI.Xaml.UIElement
return Windows.UI.Xaml.UIElement