Using the Silverlight Accordion Control
page 5 of 6
by Brian Mains
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 62804/ 83

Accordion Settings

There are some other settings that can affect how the Accordion works.  I mentioned before that the Accordion only displays one AccordionItem in the control.  This is an adjustable setting controlled by the SelectionMode property.  This enumerated property controls whether only one entry can be expanded, zero entries can be expanded, or multiple entries can be expanded.  For instance, changing this value to the value ZeroOrOne will allow zero items to be selected (by clicking the selected accordion a second time).

Setting the ExpandDirection property changes the expander to expand up, down, left, or right, by changing the value (an enumerated property).  The SelectionSequence determines the actions the Accordion takes when selecting an item.  If Simultaneous is set, the Accordion shows and hides the AccordionItem at the same time; otherwise, the currently selected item is collapsed, followed by expanding the newly selected item.

The Accordion keeps track of which items are selected via SelectedItem, SelectedIndex, and SelectedIndices (in modes where multiple selections are allowed).  These properties can be read or set accordingly.


View Entire Article

User Comments

Title: reply   
Name: dana
Date: 2012-03-14 12:53:32 PM
Comment:
How do I reference the description textblock from code
Title: Accordion imports?   
Name: davraf
Date: 2010-09-06 11:43:07 AM
Comment:
Hi,
what's the xmlns to use?
Title: reply   
Name: samantha
Date: 2009-07-01 2:57:24 AM
Comment:
giv some more code and give a full example how to bind data source to accordion
Title: Re   
Name: Jack
Date: 2009-06-11 9:14:41 PM
Comment:
Accordion is a fashion style since Outlook first bring it to us, a fashion control
Title: Needs some screen shots   
Name: graphics
Date: 2009-06-11 8:00:30 PM
Comment:
It is nice to see what the code produces, show a screen shot .....






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-10-17 9:08:15 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search