This is a migrated thread and some comments may be shown as answers.
Thinner style of RadExpander
4 Answers 123 Views
This is a migrated thread and some comments may be shown as answers.
Antonis
Top achievements
Rank 2
Antonis asked on 29 Apr 2009, 08:37 AM
How could i make my radExpander have a thinner style!?!

The style i am referring is something simillar to the expander that you had published on the first version of silverlight controls which had a small arrow image that you pressed to expand the expander and not the button (with the embedded arrow image) that the expander is using now. I think the header size of the expander is now double the size (width if you have a left/right expandation).

I am using in my application the Vista Theme. Is it possible that i could have an example of how i achieve this?! 

I tried using a Dictionary in my app.xaml but that didn't work. 


Many thanks,

Antonis

4 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 01 May 2009, 12:12 PM
Hello Antonis,

If you want to, we can send you the old ControlTemplate to apply to the RadExpander.

But if you really want to minimize the Header of the Expander horizontally, you can rotate its contents. To do this you can use our LayoutTransformControl can be found in the latest Internal build that will be uploaded later today. To achieve this you can do something similar to this xaml:

<UserControl.Resources> 
    <RotateTransform x:Key="Vericalize" Angle="-90" /> 
</UserControl.Resources> 
<Grid x:Name="LayoutRoot" Background="White">  
    <telerik:RadExpander IsExpanded="True" ExpandDirection="Right" 
            Background="LightCyan">  
        <telerik:RadExpander.Header> 
            <primitives:LayoutTransformControl  
                    LayoutTransform="{StaticResource Vericalize}">  
                <TextBlock Text="The Verical Expander" /> 
            </primitives:LayoutTransformControl> 
        </telerik:RadExpander.Header> 
        <ListBox> 
            <ListBoxItem Content="Item 1" /> 
            <ListBoxItem Content="Item 2" /> 
        </ListBox> 
    </telerik:RadExpander> 
</Grid> 

Let us know if you need the ControlTemplate,

All the best,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Antonis
Top achievements
Rank 2
answered on 04 May 2009, 06:00 AM
It would be great if you could attach the old control template..!

Thanks for showing me the way to rotate the contents on the header!
0
Accepted
Miroslav
Telerik team
answered on 04 May 2009, 03:01 PM
Hello Antonis,

I created a small project where I have included the old Expander style, please find it attached.

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Antonis
Top achievements
Rank 2
answered on 05 May 2009, 08:09 AM
Great, just what i asked for!

Many thanks!
Asked by
Antonis
Top achievements
Rank 2
Answers by
Miroslav
Telerik team
Antonis
Top achievements
Rank 2
Share this question
or