예제 #1
0
 public MainWindow()
 {
     InitializeComponent();
     this.context         = new DataModel();
     context.selectedGame = "Skyrim";
     this.DataContext     = this.context;
 }
예제 #2
0
 public UserControlHome()
 {
     InitializeComponent();
     this.context = new DataModel();
     this.sample_entries();
     this.DataContext = this.context;
 }