Exemplo n.º 1
0
        private void OnGoBack(object parameter)
        {
            FloorPlannerViewModel VM = this.DataContext as FloorPlannerViewModel;

            VM.GoBack        = null;
            this.DataContext = null;
            //Frame.GoBack();
        }
Exemplo n.º 2
0
        public FloorPlannerDemo()
        {
            InitializeComponent();
            this.Template = this.Resources["ChromelessWindowTemplate"] as ControlTemplate;
            FloorPlannerViewModel floor = new FloorPlannerViewModel();

            floor.GoBack     = new DelegateCommand <object>(OnGoBack);
            this.DataContext = floor;
        }