Intersoft.Client.UI.Aqua.UXCollection Namespace : UXAccordionOption Class |
<TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)> <TemplateVisualStateAttribute(Name="Focused", GroupName="FocusStates")> <TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)> <DescriptionAttribute("Represents a control that option for UXAccordionItem.")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")> <TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")> <TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")> Public Class UXAccordionOption Inherits Intersoft.Client.Framework.ISSelectionItemControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionItem, Intersoft.Client.Framework.ITransformInfo
Dim instance As UXAccordionOption
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplateVisualStateAttribute(Name="Focused", GroupName="FocusStates")] [TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a control that option for UXAccordionItem.")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] public class UXAccordionOption : Intersoft.Client.Framework.ISSelectionItemControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionItem, Intersoft.Client.Framework.ITransformInfo
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplateVisualStateAttribute(Name="Focused", GroupName="FocusStates")] [TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)] [DescriptionAttribute("Represents a control that option for UXAccordionItem.")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] public ref class UXAccordionOption : public Intersoft.Client.Framework.ISSelectionItemControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.ISelectionItem, Intersoft.Client.Framework.ITransformInfo
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.
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.ContentControl
Intersoft.Client.Framework.ISContentControl
Intersoft.Client.Framework.ISSelectionItemControl
Intersoft.Client.UI.Aqua.UXCollection.UXAccordionOption
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