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






Represents a control that displays a header and has a collapsable content.

Object Model

UXAccordionItem Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")>
<StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")>
<TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<DescriptionAttribute("Represents a control that displays a header and has a collapsable content. ")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")>
<TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)>
<TemplatePartAttribute(Name="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)>
<TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)>
Public Class UXAccordionItem 
   Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl
   Implements IControlIFramework, ILicensing, ISelectionISelectionItemITransformInfoIDropable 
Visual Basic (Usage)Copy Code
Dim instance As UXAccordionItem
C# 
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[DescriptionAttribute("Represents a control that displays a header and has a collapsable content. ")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)]
[TemplatePartAttribute(Name="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
public class UXAccordionItem : Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl, IControlIFramework, ILicensing, ISelectionISelectionItemITransformInfoIDropable  
JScript 
TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")
TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")
StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)
StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")
TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)
TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")
TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)
DescriptionAttribute("Represents a control that displays a header and has a collapsable content. ")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")
TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")
TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)
TemplatePartAttribute(Name="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)
TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)
public class UXAccordionItem extends Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl implements IControlIFramework, ILicensing, ISelectionISelectionItemITransformInfoIDropable 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[DescriptionAttribute("Represents a control that displays a header and has a collapsable content. ")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)]
[TemplatePartAttribute(Name="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
public __gc class UXAccordionItem : public Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl, IControlIFramework, ILicensing, ISelectionISelectionItemITransformInfoIDropable  
C++/CLI 
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[DescriptionAttribute("Represents a control that displays a header and has a collapsable content. ")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)]
[TemplatePartAttribute(Name="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
public ref class UXAccordionItem : public Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl, IControlIFramework, ILicensing, ISelectionISelectionItemITransformInfoIDropable  

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

The item container type of UXAccordion is UXAccordionItem, while the item container type for UXAccordionItem is UXAccordionOption. Both of these item types supports ImageContent model.

Consequently, you can use the ImageMemberPath and OptionImageMemberPath to bind image to the image element of UXAccordionItem and UXAccordionOption respectively.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.HeaderedItemsControl
                     Intersoft.Client.Framework.ISHeaderedItemsControl
                        Intersoft.Client.Framework.ISHeaderedSelectionControl
                           Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl
                              Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem

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.