Intersoft.Client.UI.Aqua Namespace > UXToolGroup Class : Placement Property |
<CategoryAttribute("Layout")> Public Property Placement As DockPlacement
Dim instance As UXToolGroup Dim value As DockPlacement instance.Placement = value value = instance.Placement
[CategoryAttribute("Layout")] public DockPlacement Placement {get; set;}
[CategoryAttribute("Layout")] public: property DockPlacement Placement { DockPlacement get(); void set ( DockPlacement value); }
There are several advantages to use UXToolGroup in the tool bar, such as placing each group in different position and customizing the overflow setting for each group.
The following example shows how to create a UXToolBar with two UXToolGroup instances. The first instance is aligned to the left, while the other is aligned to the right. The alignment is controlled through the Placement property.
XAML |
Copy Code
|
---|---|
<Intersoft:UXToolBar> <Intersoft:UXToolGroup> <Intersoft:UXToolBarButton Content="Save Changes" DisplayMode="ContentAndImage" Icon="/Assets/Images/Commands/Save.png" Command="{Binding Path=SaveCommand}" /> <Intersoft:UXToolBarButton Content="Cancel" DisplayMode="ContentAndImage" Icon="/Assets/Images/Commands/Cancel.png"/> </Intersoft:UXToolGroup> <Intersoft:UXToolGroup Placement="RightOrBottom"> <Intersoft:UXToolBarButton Content="Help" DisplayMode="Image" Icon="/Assets/Images/Commands/Help.png" /> <Intersoft:UXSeparator/> <Intersoft:UXToolBarButton Content="More Actions" ButtonType="DropdownButton"> <Intersoft:UXMenuItem Header="Schedule a meeting" /> </Intersoft:UXToolBarButton> </Intersoft:UXToolGroup> </Intersoft:UXToolBar> |
The result looks like the following figure.
For more information on how to use UXToolGroup along with UXToolBar, see UXToolBar Overview.
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