Inheritance: System.Windows.Controls.Control, INotifyPropertyChanged
Ejemplo n.º 1
0
 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");
     });
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
0
 public void ExposedDatePicker(ref DatePicker datePicker, ref TimePicker timePicker)
 {
     datePicker = this.datePicker;
     timePicker = this.timePicker;
 }