Thinner style of RadExpander

5 posts, 1 answers
  1. Antonis
    Antonis avatar
    33 posts
    Member since:
    Aug 2008

    Posted 29 Apr 2009 Link to this post

    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
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 01 May 2009 Link to this post

    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.
  3. DevCraft banner
  4. Antonis
    Antonis avatar
    33 posts
    Member since:
    Aug 2008

    Posted 04 May 2009 Link to this post

    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!
  5. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 May 2009 Link to this post

    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.
  6. Antonis
    Antonis avatar
    33 posts
    Member since:
    Aug 2008

    Posted 05 May 2009 Link to this post

    Great, just what i asked for!

    Many thanks!
Back to Top
DevCraft banner