Intersoft.Client.UI.Aqua.UXCollection Namespace : UXAccordion Class |
<StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)> <TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)> <DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")> <StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)> <TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)> <StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)> <TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)> Public Class UXAccordion Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
Dim instance As UXAccordion
[StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)] [TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")] [StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)] [TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)] [TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)] public class UXAccordion : Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
[StyleTypedPropertyAttribute(Property="OptionContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption)] [TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="FocusElement", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a collection of collapsed and expanded UXAccordionItem controls.")] [StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)] [TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXAccordionItem)] [TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)] public ref class UXAccordion : public Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
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.
UXAccordion has four selection modes, which are described in the following list.
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.
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> |
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
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