Intersoft ClientUI Documentation
UXAccordionItem Class
Members 



Represents a control that displays a header and has a collapsable content.
Object Model
UXAccordionItem ClassISFramework ClassStyleSelector ClassDataTemplateSelector ClassISelection InterfaceTransformInfo Class
Syntax
<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="CommonStates", Name="MouseOver")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")>
<TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)>
<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="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)>
<TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")>
<TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
Public Class UXAccordionItem 
   Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable 
Dim instance As UXAccordionItem
[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="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[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="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
public class UXAccordionItem : Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable  
[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="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[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="HeaderContainer", Type=Intersoft.Client.UI.Controls.ContentTransformer)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Collapsed")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplatePartAttribute(Name="ExpandSite", Type=Intersoft.Client.UI.Controls.ExpandableContentPresenter)]
[TemplateVisualStateAttribute(GroupName="ExpansionStates", Name="Expanded")]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
public ref class UXAccordionItem : public Intersoft.Client.UI.Controls.Interactivity.ISDragableHeaderedSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItemIntersoft.Client.Framework.ITransformInfoIntersoft.Client.UI.Controls.Interactivity.IDropable  
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.

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>

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 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

See Also

Reference

UXAccordionItem Members
Intersoft.Client.UI.Aqua.UXCollection Namespace

Send Feedback