public DragPattern(A11yElement e, IUIAutomationDragPattern p) : base(e, PatternType.UIA_DragPatternId)
        {
            Pattern = p;

            // though member method is not action specific, this pattern means for UI action.
            this.IsUIActionable = true;

            PopulateProperties();
        }
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
Exemple #3
0
 DragPattern(AutomationElement element, IUIAutomationDragPattern dragPattern)
     : base(el: element)
 {
     this._dragPattern = dragPattern;
 }
Exemple #4
0
 internal static DragPattern Wrap(
     AutomationElement element,
     IUIAutomationDragPattern dragPattern)
 {
     return(new DragPattern(element: element, dragPattern: dragPattern));
 }
Exemple #5
0
 private DragPattern(AutomationElement el, IUIAutomationDragPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }