Exemplo n.º 1
0
        public T CreateContentModel <T>()
            where T : XViewModel
        {
            if (ParentModel == null)
            {
                Debug.WriteLine("Cannot create content model after ParentModel disposed");
                return(null);
            }
            var model = ParentModel.CreateContentModel <T>(null, this);

            _childModels.Add(model);

            return(model);
        }