Ejemplo n.º 1
0
        protected override void OnLostScrollFocus(ScrollFocusChangedEventArgs e)
        {
            Stage stage = Stage;

            if (IsModal && stage != null && stage.Root.Children.Count > 0 && stage.Root.Children[stage.Root.Children.Count - 1] == this)
            {
                Actor newFocusedActor = e.NewFocus;
                if (newFocusedActor != null && !newFocusedActor.IsDescendentOf(this))
                {
                    e.Cancelled = true;
                }
            }
        }
Ejemplo n.º 2
0
 protected override void OnLostScrollFocus(ScrollFocusChangedEventArgs e)
 {
     Stage stage = Stage;
     if (IsModal && stage != null && stage.Root.Children.Count > 0 && stage.Root.Children[stage.Root.Children.Count - 1] == this) {
         Actor newFocusedActor = e.NewFocus;
         if (newFocusedActor != null && !newFocusedActor.IsDescendentOf(this))
             e.Cancelled = true;
     }
 }
Ejemplo n.º 3
0
 private static void LostScrollFocusClass(Actor sender, ScrollFocusChangedEventArgs e)
 {
     if (sender != null)
         sender.OnLostScrollFocus(e);
 }
Ejemplo n.º 4
0
 protected virtual void OnLostScrollFocus(ScrollFocusChangedEventArgs e)
 {
 }