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