User avatar
Site Admin
Posts: 3419
Joined: 20 Jan 2012, 17:18

Re: Programatically set a buttons image

03 May 2022, 13:16

Integration problems are always harder to reproduce on our side. I recommend using XamlPlayer (where everything should work, and if not, then it must be reported) and compare against your custom renderer.

Also, these lines you wrote above
auto image = new Noesis::Image();
image->SetSource(new BitmapImage(spec.iconPath.c_str()));
will leak, it must be
Ptr<Image> image = MakePtr<Image>();
Make sure to carefully read our C++ Integration Guide.

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 3 guests