Esempio n. 1
0
 internal CustomNavigationPattern(
     AutomationElement element,
     IUIAutomationCustomNavigationPattern CustomNavigationPattern)
     : base(el: element)
 {
     this._customNavigationPattern = CustomNavigationPattern;
 }
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
Esempio n. 3
0
 internal static CustomNavigationPattern Wrap(
     AutomationElement element,
     IUIAutomationCustomNavigationPattern CustomNavigationPattern)
 {
     return(new CustomNavigationPattern(element: element, CustomNavigationPattern: CustomNavigationPattern));
 }
 public CustomNavigationPattern(A11yElement e, IUIAutomationCustomNavigationPattern p) : base(e, PatternType.UIA_CustomNavigationPatternId)
 {
     this.Pattern = p;
 }