Наследование: System.EventArgs
Пример #1
0
 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();
             }
         }
     }
 }
Пример #2
0
 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);
 }