예제 #1
0
        internal new static object Wrap(AutomationElement el, object pattern, bool cached)
        {
            TransformPattern2 result = null;

            if (pattern != null)
            {
                UIAutomationClient.IUIAutomationTransformPattern basePattern =
                    (UIAutomationClient.IUIAutomationTransformPattern)el.GetRawPattern(TransformPattern.Pattern, cached);
                if (basePattern != null)
                {
                    result = new TransformPattern2(el, (UIAutomationClient.IUIAutomationTransformPattern2)pattern,
                                                   basePattern, cached);
                }
            }
            return(result);
        }
예제 #2
0
 private TransformPattern(AutomationElement el, UIAutomationClient.IUIAutomationTransformPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
예제 #3
0
 private TransformPattern(AutomationElement el, UIAutomationClient.IUIAutomationTransformPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }