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.

Vector Icon (XAML) as icon of a button (LargeIcon)

Thread ID:





104444 Jul 19,2012 01:51 PM Jan 23,2013 04:35 AM WPF 3
Tags: Tools
Wiley Barbosa Marques
Asked On July 19, 2012 01:51 PM


How to set a vector image in XAML to be the LargeIcon of a button?

I have a Path (exported from Metro Studio) on my application resources
<Path x:Key="OkIcone" ... />

Made a setter
<Style TargetType="syncfusion:ButtonAdv" x:Key="OkButton">
<Setter Property="LargeIcon" Value="{StaticResource OkIcone}" />

And when I set the style to the button, 
it throws an error
<syncfusion:ButtonAdv Style="{StaticResource OkButton}" Name="btnConfirmar" />

Can you help me?

Thanks in advance,

Wiley Marques

Karthikeyan L [Syncfusion]
Replied On July 30, 2012 05:49 AM

Hi Wiley,

We have prepared a sample based on your requirement and we have attached the sample for your reference. Please download the sample from the following link.

[Sample link]: RibbonButtonSample.zip

Please let us know if you have any queries.



Wiley Barbosa Marques
Replied On July 30, 2012 08:41 AM

Oh it's what I did. I get the Data of the Path and put on the Geometry property of the GeometryDrawing and the color on the Brush property, this was enough to work.

I guess Metro Studio should give us a XAML DrawingImage instead of a Path, sorry if I'm wrong.

Anyway, thank you for your answer!

Karuppasamy P [Syncfusion]
Replied On January 23, 2013 04:35 AM

Hi Wiley,
Thanks for your update. We are glad to know that your problem has been resolved by our Engineer.
Please feel free to contact us for queries.
Karuppasamy P


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.