Inheritance: System.Windows.Controls.Control, INotifyPropertyChanged
 public void TestEventFire()
 {
     AvalonTestRunner.RunInSTA(delegate
     {
         DatePicker picker = new DatePicker();
         bool hasEventFired = false;
         picker.SelectedDateChanged += delegate { hasEventFired = true; };
         picker.CurrentlySelectedDate = new DateTime(10);
         Assert.IsTrue(hasEventFired, "Event not fired");
     });
 }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.datePicker = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
                return;

            case 2:
                this.multiSelectDatePicker = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
                return;

            case 3:
                this.datePicker2 = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.datePicker = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
     return;
     case 2:
     this.multiSelectDatePicker = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
     return;
     case 3:
     this.datePicker2 = ((AC.AvalonControlsLibrary.Controls.DatePicker)(target));
     return;
     }
     this._contentLoaded = true;
 }
 public void ExposedDatePicker(ref DatePicker datePicker, ref TimePicker timePicker)
 {
     datePicker = this.datePicker;
     timePicker = this.timePicker;
 }