C# Class XPlatformMenus.UWP.Views.MainView

Mostra file Open project: MvvmCross/MvvmCross-Samples

Public Methods

Method Description
MainView ( ) : Windows.Foundation
OpenNavePane ( ) : void

Public method to allow pages to open SplitView's pane. Used for custom app shortcuts like navigating left from page's left-most item

PopToRoot ( ) : void

Private Methods

Method Description
CheckTogglePaneButtonSizeChanged ( ) : void

Check for the conditions where the navigation pane does not occupy the space under the floating hamburger button and trigger the event.

MainView_OnLoaded ( object sender, RoutedEventArgs e ) : void
RootSplitView_PaneClosed ( SplitView sender, object args ) : void

Hides divider when nav pane is closed.

TogglePaneButton_Checked ( object sender, RoutedEventArgs e ) : void

Callback when the SplitView's Pane is toggled opened. Restores divider's visibility and ensures that margins around the floating hamburger are correctly set.

TogglePaneButton_Unchecked ( object sender, RoutedEventArgs e ) : void

Callback when the SplitView's Pane is toggled closed. When the Pane is not visible then the floating hamburger may be occluding other content in the app unless it is aware.

Method Details

MainView() public method

public MainView ( ) : Windows.Foundation
return Windows.Foundation

OpenNavePane() public method

Public method to allow pages to open SplitView's pane. Used for custom app shortcuts like navigating left from page's left-most item
public OpenNavePane ( ) : void
return void

PopToRoot() public method

public PopToRoot ( ) : void
return void