Beispiel #1
0
        private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            PlaceholderViewModel viewModel = e.NewValue as PlaceholderViewModel;
            View view = null;

            if (viewModel != null)
            {
                view = ViewsManager.LocateViewForModel(viewModel.UnderlyingViewModel);
            }
            if (view != null)
            {
                view.DisplayPanel = false;
            }
            Content = view;
            CloneViewProperties(view);
        }