private void OnSelectionChanged(SelectionModel sender, SelectionModelSelectionChangedEventArgs args)
 {
     if (AutomationPeer.ListenerExists(AutomationEvents.SelectionPatternOnInvalidated))
     {
         var peer = (SelectionContainerAutomationPeer)FrameworkElementAutomationPeer.CreatePeerForElement(this);
         peer.SelectionChanged(args);
     }
 }
Example #2
0
 internal void SelectionChanged(SelectionModelSelectionChangedEventArgs args)
 {
     RaiseAutomationEvent(AutomationEvents.SelectionPatternOnInvalidated);
 }