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
close icon

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

Hello,

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}" />
</Style>

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

3 Replies

KL Karthikeyan L Syncfusion Team 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.

Regards,

Karthikeyan.



WB Wiley Barbosa Marques 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!


KP Karuppasamy P Syncfusion Team 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.
 
Regards,
Karuppasamy P

Loader.
Live Chat Icon For mobile
Up arrow icon