C# Class Solocast.UWP.AppShell

The "chrome" layer of the app that provides top-level navigation with proper keyboarding navigation.
Inheritance: Windows.UI.Xaml.Controls.Page
Exibir arquivo Open project: Solocast/solocast-clients Class Usage Examples

Public Properties

Property Type Description
Current AppShell

Public Methods

Method Description
AppShell ( ) : System

Initializes a new instance of the AppShell, sets the static 'Current' reference, adds callbacks for Back requests and changes in the SplitView's DisplayMode, and provide the nav menu list with the data to display.

Private Methods

Method Description
AppShell_KeyDown ( object sender, KeyRoutedEventArgs e ) : void

Default keyboard focus movement for any unhandled keyboarding

BackButton_Click ( object sender, RoutedEventArgs e ) : void
BackRequested ( bool &handled ) : void
CheckTogglePaneButtonSizeChanged ( ) : void

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

NavMenuItemContainerContentChanging ( ListViewBase sender, ContainerContentChangingEventArgs args ) : void

Enable accessibility on each nav menu item by setting the AutomationProperties.Name on each container using the associated Label of each item.

NavMenuList_ItemInvoked ( object sender, ListViewItem listViewItem ) : void

Navigate to the Page for the selected listViewItem.

OnNavigatedToPage ( object sender, NavigationEventArgs e ) : void
OnNavigatingToPage ( object sender, NavigatingCancelEventArgs e ) : void

Ensures the nav menu reflects reality when navigation is triggered outside of the nav menu buttons.

Page_Loaded ( object sender, RoutedEventArgs e ) : void
SettingsButton_Click ( object sender, RoutedEventArgs e ) : void
Slider_ManipulationCompleted ( object sender, ManipulationCompletedRoutedEventArgs e ) : void
SystemNavigationManager_BackRequested ( object sender, BackRequestedEventArgs e ) : void
TogglePaneButton_Checked ( object sender, RoutedEventArgs e ) : void

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

Method Details

AppShell() public method

Initializes a new instance of the AppShell, sets the static 'Current' reference, adds callbacks for Back requests and changes in the SplitView's DisplayMode, and provide the nav menu list with the data to display.
public AppShell ( ) : System
return System

Property Details

Current public_oe static_oe property

public static AppShell,Solocast.UWP Current
return AppShell