Intersoft ClientUI Documentation
Placement Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace > UXToolGroup Class : Placement Property






Specifies the preferred placement of this control in the toolbar's dock panel.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Layout")>
Public Property Placement As DockPlacement
Visual Basic (Usage)Copy Code
Dim instance As UXToolGroup
Dim value As DockPlacement
 
instance.Placement = value
 
value = instance.Placement
C# 
[CategoryAttribute("Layout")]
public DockPlacement Placement {get; set;}
Delphi 
public read-write property Placement: DockPlacement; 
JScript 
CategoryAttribute("Layout")
public function get,set Placement : DockPlacement
Managed Extensions for C++ 
[CategoryAttribute("Layout")]
public: __property DockPlacement get_Placement();
public: __property void set_Placement( 
   DockPlacement value
);
C++/CLI 
[CategoryAttribute("Layout")]
public:
property DockPlacement Placement {
   DockPlacement get();
   void set (    DockPlacement value);
}

Remarks

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.