The SvgImageSource extension allows you to specify a vector image as BarButtonItem's glyph . You can reference a resource in xaml as follows:
See also:
Binding Mechanism.
Added By: David Lemieux at: 9/8/2016 5:05:32 AM Is this supposed to work when the extension is used from inside a DataTemplate, which in turn is within a ResourceDictionary in a file from another assembly? Will the uri be resolved relatively to the RD file location?Added By: Andrey Marten (DevExpress Support) at: 9/8/2016 7:07:24 AM
Hello David,
Thanks,
Andrey
where dxis the xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" namespace.[XAML]Glyph="{dx:SvgImageSourceUri=Images/Notebook.svg}"
See also:
Binding Mechanism.
Question Comments
Added By: David Lemieux at: 9/8/2016 5:05:32 AM Is this supposed to work when the extension is used from inside a DataTemplate, which in turn is within a ResourceDictionary in a file from another assembly? Will the uri be resolved relatively to the RD file location?Added By: Andrey Marten (DevExpress Support) at: 9/8/2016 7:07:24 AM
Hello David,
I see that I missed a similar question in your thread (T424596). Please accept my apologies for that. I hope you wouldn't mind if I answer you there.
I've updated both your description and my answer in that thread. Take a moment to review it and let me know if you have other questions.
Thanks,
Andrey