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; } } }
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; } }
private static void LostScrollFocusClass(Actor sender, ScrollFocusChangedEventArgs e) { if (sender != null) sender.OnLostScrollFocus(e); }
protected virtual void OnLostScrollFocus(ScrollFocusChangedEventArgs e) { }