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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How set Large Icon on RibbonButton from Metro Studio Resource Dictionary

Thread ID:





127867 Dec 14,2016 03:03 PM UTC Dec 15,2016 05:28 AM UTC WPF 1
Tags: Ribbon
Asked On December 14, 2016 03:03 PM UTC

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

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    <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">
                            <RotateTransform Angle="0" />
                            <ScaleTransform ScaleX="1" ScaleY="1" />

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

Thanks a lot

Mariappan S [Syncfusion]
Replied On 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

Mariappan S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon