Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > Backstage Icon Size

Not answered Backstage Icon Size

Feed from this thread
  • B avatar

    Posted on Feb 7, 2012 (permalink)

    Hi,

    How do we set the backstage icon size in the silverlight control? I know there is a thread for this on the WPF control but it will not work for silverlight.

    http://www.telerik.com/community/forums/wpf/ribbon-bar/backstage-icon-sizing-issue.aspx How do we make this work in Silverlight?

    Thansk Bruce

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello B ,

     I hope you use RadRibbonView (instead of RadRibbonBar) where the Styles and Templates are smaller,easy to maintain and easy to extract from Blend. I prepared a project that demonstrates how to edit the template of the RadRibbonBackStageItems:

    <StackPanel x:Name="ContentPanel" Margin="20 10" Orientation="Horizontal">
                        <Image x:Name="Image" MaxWidth="48" MaxHeight="48" Margin="0 0 5 0" Source="{TemplateBinding Icon}" Stretch="None" Visibility="Collapsed"/>
                        <ContentControl x:Name="HeaderElement" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </StackPanel>
     Please check it out and let us know if it helps you.

    All the best,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
    Attached files

    Reply

  • Christoph avatar

    Posted on Feb 22, 2012 (permalink)

    Hi,

    the solution using a custom control template to re-scale the icons works fine, as long as only one theme is used.

    But how can I handle different themes easily?

    The problem: a custom  template overrides the themed colors by a fixed collection of colors and therefore  the correct "themed-colors" do not show up.

    I get this issue at every point you suggest to edit the control/data template if a property is not accessable.
    Is there any way to get around this matter without having a lot of other troubles? (e.g. extracting all the needed "theme-keys" to apply them to the customized template..)

    Thanks,
    Christoph

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Feb 27, 2012 (permalink)

    Hi Christoph,

    Currently , we are not aware of easy way to workaround this - you have to edit the Style / ControlTemplate of the control in the specific Theme you will use.

    All the best,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > Backstage Icon Size