Method FromSvgUrlForToolbar
FromSvgUrlForToolbar(string, Control, Color?)
Initializes a new instance of the ImageSet class from the specified url which points to svg file or resource.
public static ImageSet FromSvgUrlForToolbar(string url, Control control, Color? color = null)
Parameters
url
stringThe file or embedded resource url with Svg data used to load the image.
control
ControlControl which GetDPI() method is used to get DPI.
color
ColorSvg fill color. Optional. If provided, svg fill color is changed to the specified value.
Returns
Remarks
This is similar to FromSvgUrl(string, int, int, Color?) but uses GetDPI() and GetDefaultImageSize(double) to get appropriate image size which is best suitable for toolbars.