상속: 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);
 }