示例#1
0
 private void OnControlRemoved(object sender, ContainerControlEventArgs eventArgs)
 {
     RemoveControlEvents(eventArgs.Control);
     if (FocusManager != null)
         FocusManager.ControlTreeChanged();
 }
示例#2
0
 private void OnControlAdded(object sender, ContainerControlEventArgs eventArgs)
 {
     WireControlEvents(eventArgs.Control);
     eventArgs.Control.RedrawRequested += (o, args) => RedrawRequested(o as Control, args);
     if (FocusManager != null)
         FocusManager.ControlTreeChanged();
 }