Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to use the SvgImageSource extension to specify a vector image as BarButtonItem's glyph

$
0
0
The SvgImageSource extension allows you to specify a vector image as BarButtonItem's glyph . You can reference a resource in xaml as follows:
[XAML]
Glyph="{dx:SvgImageSourceUri=Images/Notebook.svg}"
where dxis the xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" namespace.

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

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>