public void FocusPrevious() { Focused.RemoveFocus(); Index = Index == 0 ? Items.Count - 1 : --Index; Focused.Focus(); Render.Update(); }
public void FocusNext() { Focused.RemoveFocus(); Index = Index == Items.Count - 1 ? 0 : ++Index; Focused.Focus(); Render.Update(); }
private void Focused_Loaded(object sender, RoutedEventArgs e) { Focused.Focus(FocusState.Programmatic); }