Method FromUrl
FromUrl(string)
Initializes a new instance of the IconSet class from the specified url.
public static IconSet? FromUrl(string url)Parameters
- urlstring
- The file or embedded resource url used to load the image. 
Returns
Examples
var ResPrefix = $"embres:ControlsTest.Resources.Icons.";
var url = $"{ResPrefix}default.ico";
var iconSet = IconSet.FromUrl(url); // can raise an exception if file not found
var iconSet2 = IconSet.FromUrlOrNull(url); // return null instead of exception
if file not foundRemarks
url can include assembly name. Example:
"embres:Alternet.UI.Resources.Svg.IconName.ico?assembly=Alternet.UI"