Esempio n. 1
0
        private void DataConfigurationButton_Click(object sender, RoutedEventArgs e)
        {
            DataConfigurationPopup popup = this.CreatePopup(this.DataSchemaItem);

            popup.PlacementTarget  = (UIElement)this;
            popup.VerticalOffset   = this.ActualHeight;
            popup.HorizontalOffset = this.ActualWidth - 2.0;
            popup.Placement        = PlacementMode.Left;
            popup.IsOpen           = true;
            this.RememberPopup(popup);
        }
Esempio n. 2
0
 private void RestorePreviousPopup()
 {
     if (DataConfigurationButton.openedPopup == null || !DataConfigurationButton.openedPopup.IsPerformingSchemaChange || !(DataConfigurationButton.openedPopupUniqueId == this.UniqueId))
     {
         return;
     }
     if (this.IsEnabled)
     {
         DataConfigurationButton.openedPopup.PlacementTarget          = (UIElement)this;
         DataConfigurationButton.openedPopup.IsOpen                   = true;
         DataConfigurationButton.openedPopup.IsPerformingSchemaChange = false;
     }
     else
     {
         DataConfigurationButton.openedPopup = (DataConfigurationPopup)null;
     }
 }
Esempio n. 3
0
 public ComboBoxData(IPopupControlCallback popupCallback, ConfigurationPlaceholder control, DataConfigurationPopup popup)
 {
     this.PopupCallback = popupCallback;
     this.Control       = control;
     this.Popup         = popup;
 }
Esempio n. 4
0
 private void RememberPopup(DataConfigurationPopup popup)
 {
     DataConfigurationButton.openedPopup         = popup;
     DataConfigurationButton.openedPopupUniqueId = this.UniqueId;
 }