コード例 #1
0
 /// <inheritdoc/>
 public bool IsValid(FrameworkElement element, AutomationPeer peer)
 {
     if (peer?.GetAutomationControlType() == AutomationControlType.ScrollBar ||
         peer?.GetAutomationControlType() == AutomationControlType.Tab)
     {
         return(peer?.GetOrientation() != AutomationOrientation.None);
     }
     return(true);
 }