We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How set Large Icon on RibbonButton from Metro Studio Resource Dictionary

I exported some icon into Resource Dictionary from Metro Studio like this:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Viewbox x:Key="Customer">
        <Grid Width="128" Height="128" Visibility="Visible">
            <Path Data="M17.399999,26.300016L17.399999,30.300018 24.399997,30.300018 24.399997,26.300016z M9.200003,19.200007L20.000003,19.200007C25.099994,19.200007,29.199998,23.300015,29.199998,28.399992L29.199998,32 0,32 0,28.399992C-2.3261737E-07,23.300015,4.100005,19.200007,9.200003,19.200007z M14.599996,0C19.099994,0 22.800006,3.6999987 22.800006,8.2000008 22.800006,12.700003 19.099994,16.399986 14.599996,16.399986 10.100004,16.399986 6.4000004,12.800009 6.4000004,8.2000008 6.4000004,3.5999926 10.100004,0 14.599996,0z" Stretch="Uniform" Fill="#FF333333" Width="68" Height="68" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                <Path.RenderTransform>
                    <TransformGroup>
                        <TransformGroup.Children>
                            <RotateTransform Angle="0" />
                            <ScaleTransform ScaleX="1" ScaleY="1" />
                        </TransformGroup.Children>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
        </Grid>
    </Viewbox>
</ResourceDictionary>

How can I set this resource in "LargeIcon" property on RibbonButton?

Thanks a lot

1 Reply

MS Mariappan S Syncfusion Team December 15, 2016 05:28 AM UTC

Hi CSharpino, 

Thank you for contacting Syncfusion support 

Currently we cannot set Icon using ResourceDictionary for RibbonButton. But you can use XAML path in LargeIcon property of RibbonButton using “DrawingImage” class. We have prepared sample for the same. Please download the sample from the following link. 

Sample link: RibbonSample
 

Regards, 
Mariappan S. 


Loader.
Live Chat Icon For mobile
Up arrow icon