Created
November 14, 2012 06:57
-
-
Save erikdietrich/4070734 to your computer and use it in GitHub Desktop.
Code behind for the main window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Imaging; | |
using System.Windows.Navigation; | |
using System.Windows.Shapes; | |
namespace WpfScratchpad | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml | |
/// </summary> | |
public partial class MainWindow : Window | |
{ | |
private readonly MainWindowViewModel _viewModel; | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
DataContext =_viewModel = new MainWindowViewModel("Please Select"); | |
} | |
private void HandleButtonClick(object sender, RoutedEventArgs e) | |
{ | |
Application.Current.Shutdown(); | |
} | |
private void HandleDropDownOpened(object sender, EventArgs e) | |
{ | |
_viewModel.RemoveSelect(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment