示例#1
0
//        private UiaWindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) : base(el, hPattern)
//        {
//            this._hPattern = hPattern;
//            this._cached = cached;
//        }
        public virtual void SetWindowVisualState(classic.WindowVisualState state)
        {
            // UiaCoreApi.WindowPattern_SetWindowVisualState(this._hPattern, state);
            _windowPattern.SetWindowVisualState(state);
        }
示例#2
0
 public static IUiElement PerformSetWindowVisualState(this IUiElement element, classic.WindowVisualState state)
 {
     try {
         element.GetCurrentPattern <IWindowPattern>(classic.WindowPattern.Pattern).SetWindowVisualState(state);
     } catch (Exception) {
         //
         // throw;
     }
     return(element);
 }