Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }