private void OnSelectionChanged (Accessible sender)
{
IElement [] newSelection = source.GetSelection ();
AutomationSource.RaisePropertyChangedEvent (element,
SelectionPattern.SelectionProperty,
oldSelection ?? new IElement [0],
newSelection ?? new IElement [0]);
oldSelection = newSelection;
}