Ejemplo n.º 1
0
 /// <summary>
 /// Called when activating.
 /// </summary>
 /// <param name="cancellationToken"></param>
 protected override Task OnActivate(CancellationToken cancellationToken = new CancellationToken())
 {
     return(ScreenExtensions.TryActivate(ActiveItem, cancellationToken));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Called when activating.
 /// </summary>
 protected override void OnActivate()
 {
     ScreenExtensions.TryActivate(ActiveItem);
 }
 /// <summary>
 /// Called when activating.
 /// </summary>
 /// <param name="cancellationToken"></param>
 protected override async Task OnActivate(CancellationToken cancellationToken = default(CancellationToken))
 {
     await ScreenExtensions.TryActivate(ActiveItem, cancellationToken);
 }