private void OnGoBack(object parameter) { FloorPlannerViewModel floor = this.DataContext as FloorPlannerViewModel; floor.GoBack = null; this.DataContext = null; //Frame.Navigate(typeof(SampleBrowser.Home)); }
public MainPage() { this.InitializeComponent(); FloorPlannerViewModel floor = new FloorPlannerViewModel(); floor.GoBack = new DelegateCommand <object>(OnGoBack); this.DataContext = floor; }