/// <summary> /// Creates a UI test control based on specified <see cref="CUITControls.WpfControl"/>. /// </summary> /// <param name="sourceControl">The source control to base the UI test control on.</param> /// <returns> /// A UI test control based on specified <see cref="CUITControls.WpfControl"/>. /// </returns> internal static ControlBase Create(CUITControls.WpfControl sourceControl) { if (sourceControl == null) { throw new ArgumentNullException("sourceControl"); } string targetNamespace = typeof(WpfControlFactory).Namespace; return(Create(sourceControl, targetNamespace)); }
/// <summary> /// Create a CUITe WPF control based on the type of provided WpfControl. /// </summary> /// <param name="sourceControl"></param> /// <returns></returns> public static IControlBase Create(CUITControls.WpfControl sourceControl) { string targetNamespace = typeof(WpfControlFactory).Namespace; return(Create(sourceControl, targetNamespace)); }