private void OnNavigationStart(object sender, NavigationEventArgs e) { if (e.SourceDescriptor.ViewName == "WidgetView") { foreach (IWidget widget in Target.Widgets) { IStateAware stateAware = widget as IStateAware; if (stateAware != null) { stateAware.OnStop(); } } } }
private void OnNavigationCompleted(object sender, NavigationEventArgs e) { if (e.TargetDescriptor.ViewName == "WidgetView") { foreach (IWidget widget in Target.Widgets) { IStateAware stateAware = widget as IStateAware; if (stateAware != null) { stateAware.OnResume(); } } } }
private void OnNavigationStart(object sender, NavigationEventArgs e) { IsSelected = (e.TargetDescriptor == _navigationDescriptor && e.TargetState == null); }