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.
Unfortunately, activation email could not send to your email. Please try again.

How set Large Icon on RibbonButton from Metro Studio Resource Dictionary

Thread ID:

Created:

Updated:

Platform:

Replies:

127867 Dec 14,2016 10:03 AM Dec 15,2016 12:28 AM WPF 1
loading
Tags: Ribbon
CSharpino
Asked On December 14, 2016 10:03 AM

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

Mariappan S [Syncfusion]
Replied On December 15, 2016 12:28 AM

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. 


CONFIRMATION

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.

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.

;