Skip to main content

Microsoft Silverlight

Answered Question Accordion / AccordionItem StyleRSS Feed

(0)

GemMaddy
GemMaddy

Member

Member

26 points

46 Posts

Accordion / AccordionItem Style

Hi,

I'm trying to give style to the accordion of silverlight toolkit. I tried applying theme but no luck. When I apply theme the Accordion control gets shifted to margin 0,0,0,0 automatically with a fixed height. Out of four accordion items only three remain visible in that height and expanding even doesn't change the height. Then I tried applying my own design using blend 2. But making the design in app.xaml when I click Page.XAML the blend gets crashed. I tried to give it simple(with couple of property), but still the same result. One thing worth  mentioning, I tried to give style to AccordionItem also which generated the style like below  

    	<Style x:Key="AccordionStyle" TargetType="control:Accordion">
    		<Setter Property="BorderBrush" Value="#FF000000"/>
    		<Setter Property="Foreground" Value="#FFFF0000"/>
    		<Setter Property="SelectedItem">
    			<Setter.Value>
    				<control:AccordionItem Background="#FF000000" Foreground="#FFFF0303" BorderBrush="#FF000000" Cursor="Arrow" FontFamily="Comic Sans MS"/>
    			</Setter.Value>
    		</Setter>
    	</Style> 

 Any idea?

Regards
Manish

Isaak
Isaak

Member

Member

530 points

94 Posts

Answered Question

Re: Accordion / AccordionItem Style

Take a look at the following post:

http://silverlight.net/forums/t/97559.aspx

It solved a similar problem that I had

GemMaddy
GemMaddy

Member

Member

26 points

46 Posts

Re: Accordion / AccordionItem Style

Thanks buddy, that solved th issue.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities