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

error when adding icon

Hello

When I add this to the Button:  

SmallIcon="\Images\run.png"

I get this error:

System.Windows.Markup.XamlParseException: ''Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.

IOException: Cannot locate resource 'images/run.png'.

In design mode it all looks ok.


3 Replies

BA BagavathiPerumal Apranandham Syncfusion Team February 3, 2023 11:14 AM UTC

Hi Frank,


We are unable to reproduce the issue from our end. Please refer to the attached sample for your reference.



Regards,

Bagavathi Perumal A


Attachment: ButtonAdv_dc7eb8ba.zip


ML Morgan Le Fay July 13, 2023 09:37 AM UTC

I have same problem on some PC and windows 11 sandbox.

but working good my pc.


---- Edit -----

I Found the problem.

Since sometime the Syncfusion.SfInput.WPF.dll file is missing.

There seems to be a problem with dependencies.

I used version 19.4460.0.56,

However, after installing version Syncfusion WPF 22.1.34 Essential Studio a few days ago, I had this problem.


Added a reference to the SfDatePicker control to add the Syncfusion.SfInput.WPF.dll file to the output folder at build time.

Problem solved.



MJ Madhumithan Jayapathi Syncfusion Team July 14, 2023 06:58 AM UTC

Hi Morgan,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help. 

Regards,
Madhumithan Jayapathi


Loader.
Live Chat Icon For mobile
Up arrow icon