private void Button_Click(object sender, RoutedEventArgs e)
 {
     EventModel _event = new EventModel();
     this.DataContext = _event;
 }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     EventModel _event = new EventModel(){};
     this.DataContext = _event;
 }
 private void EventDate_CalendarClosed(object sender, RoutedEventArgs e)
 {
     EventModel _event = new EventModel();
     this.DataContext = _event;
 }