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

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

Thread ID:





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


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 09:49 AM UTC

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 12:41 PM UTC

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 09:35 AM UTC

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.

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