Intersoft ClientUI Documentation
PreferredPosition Property (UXDropDownButton)



Gets or sets the preferred pop up positions.
Syntax
<CategoryAttribute("Menu")>
Public Property PreferredPosition As PopupPosition
Dim instance As UXDropDownButton
Dim value As PopupPosition
 
instance.PreferredPosition = value
 
value = instance.PreferredPosition
[CategoryAttribute("Menu")]
public PopupPosition PreferredPosition {get; set;}
[CategoryAttribute("Menu")]
public:
property PopupPosition PreferredPosition {
   PopupPosition get();
   void set (    PopupPosition value);
}
Remarks

UXDropDownButton has similar properties with UXPopup which controls the dropdown menu position. The following list describes the properties that control the dropdown menu position.

The following examples show how to change the dropdown menu position using the properties above.

XAML
Copy Code
<Intersoft:UXDropDownButton Content="Button" HorizontalAlignment="Center" VerticalAlignment="Center" PreferredPosition="BottomRight" PreferredVerticalDirection="Up">
        <Intersoft:UXMenuItem Header="UXMenuItem"/>
        <Intersoft:UXMenuItem Header="UXMenuItem"/>
        <Intersoft:UXMenuItem Header="UXMenuItem"/>
        <Intersoft:UXMenuItem Header="UXMenuItem"/>
        <Intersoft:UXMenuItem Header="UXMenuItem"/>
</Intersoft:UXDropDownButton>

To learn more about dropdown menu positioning, see Popup Overview.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXDropDownButton Class
UXDropDownButton Members

Concepts

UXDropDownButton

Send Feedback