Пример #1
0
 internal void SetPopupPlacement(System.Windows.Controls.Primitives.PlacementMode placement)
 {
     if (this.DropDownPopup != null)
     {
         this.DropDownPopup.Placement = placement;
     }
     if (this.popupAdorner != null)
     {
         this.popupAdorner.Placement = placement;
     }
 }
Пример #2
0
        private void OnDropDownPlacementChanged(System.Windows.Controls.Primitives.PlacementMode newValue)

        {
            this.UpdateVisualState(false);
        }
Пример #3
0
 /// <summary>
 /// Sets a value describing the PlacementMode of the Popup.
 /// </summary>
 /// <param name="obj">The corresponding popup.</param>
 /// <param name="value">A value describing the PlacementMode of the Popup.</param>
 public static void SetPlacement(DependencyObject obj, NativePlacementMode value)
 {
     obj.SetValue(PlacementProperty, value);
 }