private Image GetGlyph(Glyph glyph) { return(new Image { VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, 5, 0), Source = NQueryGlyphImageSource.Get(glyph) }); }
protected override Image GetImage(string source) { Glyph glyph; if (!Enum.TryParse(source, out glyph)) { return(null); } var imageSource = NQueryGlyphImageSource.Get(glyph); return(new Image { Margin = new Thickness(0, 0, 4, 0), Source = imageSource, Stretch = Stretch.None, UseLayoutRounding = true }); }
private static ImageSource ToImage(Glyph?glyp) { return(glyp == null ? null : NQueryGlyphImageSource.Get(glyp.Value)); }
public ImageSource GetImageSource() { return(NQueryGlyphImageSource.Get(_glyph)); }