A flexible content container that can safely work with bound UIElements or DataTemplates.
Inheritance: System.Windows.Controls.UserControl
コード例 #1
0
        public void ShouldCreateViewModelFromView()
        {
            view = new ContentContainer();
            view.ViewModel.ShouldBe(null);

            var model = view.CreateViewModel();
            model.ShouldBeInstanceOfType<IContentContainer>();
            view.ViewModel.ShouldBe(model);
        }
コード例 #2
0
 public void TestSetup()
 {
     viewModel = new ContentContainerViewModel();
     view = viewModel.CreateView() as ContentContainer;
 }