Re: Programatically set a buttons image
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
will leak, it must be
Make sure to carefully read our C++ Integration Guide.
Also, these lines you wrote above
Code: Select all
auto image = new Noesis::Image();
image->SetSource(new BitmapImage(spec.iconPath.c_str()));
Code: Select all
Ptr<Image> image = MakePtr<Image>();
image->SetSource(MakePtr<BitmapImage>(spec.iconPath.c_str()));
Who is online
Users browsing this forum: No registered users and 8 guests