private void ListViewItem_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            //var temp = sender as Button;

            //if (temp != null)
            //{
            //    MessageBox.Show("hi");
            //}
            //else
            //{
            //    var item = (sender as FrameworkElement).DataContext;
            //    //messagebox.show((item as recipe).name);

            //    var detailscreen = new DetailScreen((item as Recipe).name);

            //    this.Hide();

            //    detailscreen.Dying += detailScreenClosing;

            //    detailscreen.Show();
            //}

            var item = (sender as FrameworkElement).DataContext;
            //messagebox.show((item as recipe).name);

            var detailscreen = new DetailScreen((item as Recipe).name);

            this.Hide();

            detailscreen.Dying += detailScreenClosing;

            detailscreen.Show();
        }
        private void ListViewItem_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            var item = (sender as FrameworkElement).DataContext;

            var detailScreen = new DetailScreen((item as Recipe).name);

            detailScreen.Show();
        }