
Var headerTemplate = GetHeaderTemplate( _currentPage) ĪssociatedObject. If ( headerMode = NavigationViewHeaderMode. Header = headerFromPage ĪssociatedObject. Var headerFromPage = GetHeaderContext( _currentPage) ĪssociatedObject. Var headerMode = GetHeaderMode( _currentPage) Private void OnNavigated( object sender, NavigationEventArgs e) RegisterAttached( "HeaderTemplate ", typeof( DataTemplate), typeof( NavigationViewHeaderBehavior), new PropertyMetadata( null, ( d, e) => _current. Public static readonly DependencyProperty HeaderTemplateProperty = DependencyProperty. SetValue( HeaderTemplateProperty, value) Public static void SetHeaderTemplate( Page item, DataTemplate value) Public static DataTemplate GetHeaderTemplate( Page item) RegisterAttached( "HeaderContext ", typeof( object), typeof( NavigationViewHeaderBehavior), new PropertyMetadata( null, ( d, e) => _current.

Public static readonly DependencyProperty HeaderContextProperty = DependencyProperty. Public static void SetHeaderContext( Page item, object value) Public static object GetHeaderContext( Page item) RegisterAttached( "HeaderMode ", typeof( bool), typeof( NavigationViewHeaderBehavior), new PropertyMetadata( NavigationViewHeaderMode. Public static readonly DependencyProperty HeaderModeProperty = DependencyProperty. Public static void SetHeaderMode( Page item, NavigationViewHeaderMode value)

Public static NavigationViewHeaderMode GetHeaderMode( Page item) Register( "DefaultHeader ", typeof( object), typeof( NavigationViewHeaderBehavior), new PropertyMetadata( null, ( d, e) => _current. Public static readonly DependencyProperty DefaultHeaderProperty = DependencyProperty. Public DataTemplate DefaultHeaderTemplate Private static NavigationViewHeaderBehavior _current Public class NavigationViewHeaderBehavior : Behavior Thickness values you will have to update.
#REMOVE NAVHELPER UPDATE#
Update and add new Margins that will be used in pages. Private IEnumerable GetActivationHandlers() Tasks after activation await StartupAsync() Ensure the current window is active Window. CanHandle( activationArgs))Īwait defaultHandler. Var defaultHandler = new DefaultLaunchActivationHandler( _defaultNavItem) CanHandle( activationArgs)) Īwait activationHandler. Var activationHandler = GetActivationHandlers() Create a Frame to act as the navigation context and navigate to the first page Window. Do not repeat app initialization when the Window already has content, // just ensure that the window is active if ( Window. Initialize things like registering background task before the app is loaded await InitializeAsync()

Public async Task ActivateAsync( object activationArgs) Public ActivationService( App app, Type defaultNavItem, Lazy shell = null) For more information on application activation see internal class ActivationService
