Intersoft ClientUI Documentation
VisibleItemCount Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXCollection Namespace > UXNavigationPane Class : VisibleItemCount Property






Gets or sets a value indicating the number of items that are visible in the control.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property VisibleItemCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As UXNavigationPane
Dim value As Integer
 
instance.VisibleItemCount = value
 
value = instance.VisibleItemCount
C# 
[CategoryAttribute("Common Properties")]
public int VisibleItemCount {get; set;}
Delphi 
public read-write property VisibleItemCount: Integer; 
JScript 
CategoryAttribute("Common Properties")
public function get,set VisibleItemCount : int
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property int get_VisibleItemCount();
public: __property void set_VisibleItemCount( 
   int value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property int VisibleItemCount {
   int get();
   void set (    int value);
}

Example

The following code shows how to customize the VisibleItemCount property.

XAML Copy Code
<Grid>
    <Intersoft:UXNavigationPane Width="250" VisibleItemCount="3">
        <Intersoft:UXNavigationPaneItem Header="Mail" DisplayMode="ContentAndImage" Icon="/SLNavigationPane;component/images/Outlook/Mail.png">
            Mail
        </Intersoft:UXNavigationPaneItem>
        <Intersoft:UXNavigationPaneItem Header="Calendar" DisplayMode="ContentAndImage" 
            Icon="/SLNavigationPane;component/images/Outlook/Calendar.png">
            Calendar
        </Intersoft:UXNavigationPaneItem>
        <Intersoft:UXNavigationPaneItem Header="Contacts" DisplayMode="ContentAndImage" 
            Icon="/SLNavigationPane;component/images/Outlook/Contact.png">
            Contacts
        </Intersoft:UXNavigationPaneItem>
    </Intersoft:UXNavigationPane>
</Grid>

Remarks

UXNavigationPane is built with fluid user interface design which allows you to define as much items as you need without compromising the application's layout and real screen estate. UXNavigationPane displays only a specific number of items in the main items container which is determined by the VisibleItemCount property. The rest of items, often called overflowing items, will be smartly placed in either the footer element or context menu depending on the available space.

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.