示例#1
0
        private void OnGoBack(object parameter)
        {
            FloorPlannerViewModel floor = this.DataContext as FloorPlannerViewModel;

            floor.GoBack     = null;
            this.DataContext = null;
            //Frame.Navigate(typeof(SampleBrowser.Home));
        }
示例#2
0
        public MainPage()
        {
            this.InitializeComponent();
            FloorPlannerViewModel floor = new FloorPlannerViewModel();

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