Intersoft ClientUI Documentation
UXAccordion Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXCollection Namespace : UXAccordion Class






Represents a collection of collapsed and expanded UXAccordionItem controls.

Object Model

UXAccordion Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)>
<DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")>
<TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)>
<StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)>
<TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)>
<StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)>
Public Class UXAccordion 
   Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl
   Implements IControlIFramework, ILicensing, IMultipleSelectionISelectionIDropable 
Visual Basic (Usage)Copy Code
Dim instance As UXAccordion
C# 
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)]
[StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)]
public class UXAccordion : Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, IControlIFramework, ILicensing, IMultipleSelectionISelectionIDropable  
JScript 
TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)
DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")
TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)
StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)
TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)
StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)
StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)
public class UXAccordion extends Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl implements IControlIFramework, ILicensing, IMultipleSelectionISelectionIDropable 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)]
[StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)]
public __gc class UXAccordion : public Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, IControlIFramework, ILicensing, IMultipleSelectionISelectionIDropable  
C++/CLI 
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)]
[StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)]
public ref class UXAccordion : public Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, IControlIFramework, ILicensing, IMultipleSelectionISelectionIDropable  

Example

The following example shows how to create a simple accordion.

XAML Copy Code
<Intersoft:UXAccordion HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Height="200">
    <Intersoft:UXAccordionItem Header="Co-Workers">
        <Intersoft:UXAccordionOption Content="Anton"/>
        <Intersoft:UXAccordionOption Content="Brad"/>
        <Intersoft:UXAccordionOption Content="David"/>
        <Intersoft:UXAccordionOption Content="Duke"/>
        <Intersoft:UXAccordionOption Content="Lisa"/>
    </Intersoft:UXAccordionItem>
    <Intersoft:UXAccordionItem Header="Friends">
        <Intersoft:UXAccordionOption Content="Jane"/>
        <Intersoft:UXAccordionOption Content="John"/>
        <Intersoft:UXAccordionOption Content="Luke"/>                
    </Intersoft:UXAccordionItem>
    <Intersoft:UXAccordionItem Header="Family">
        <Intersoft:UXAccordionOption Content="Adam"/>
        <Intersoft:UXAccordionOption Content="Anna"/>
        <Intersoft:UXAccordionOption Content="Eden"/>
        <Intersoft:UXAccordionOption Content="Eva"/>               
    </Intersoft:UXAccordionItem>
</Intersoft:UXAccordion>

Remarks

UXAccordion is inherited from ISMultipleSelectionControl, which means it can be used to perform a single selection and multiple selection depending on the mode. For more information about selection control, see ItemsControl Overview and Content Model Overview respectively.

Configuring SelectionMode

UXAccordion has four selection modes, which are described in the following list.

Using Keyboard to Perform Selection

You can navigate between the items using arrow keys in the keyboard. In the One mode, navigating between items will change the selection immediately.

In other modes, you use SpaceBar to select or unselect an item, while using arrow keys to navigate between the items.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.ISItemsControl
                     Intersoft.Client.Framework.ISSelectionControl
                        Intersoft.Client.Framework.ISMultipleSelectionControl
                           Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl
                              Intersoft.Client.UI.Aqua.UXCollection.UXAccordion

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.