public static View Create(WindowProfile owningProfile, string name, Type viewType) { if (owningProfile == null) { throw new ArgumentNullException("owningProfile"); } View view = ViewElementFactory.Current.CreateView(viewType); View.Initialize(view, owningProfile, name); return(view); }
public static View Create(WindowProfile owningProfile, string name) { if (owningProfile == null) { throw new ArgumentNullException("owningProfile"); } View view = View.Create(); View.Initialize(view, owningProfile, name); return(view); }