public static ImageSource GetImageSource(SystemIcon systemIcon, int width, int height) { switch (systemIcon) { case SystemIcon.UACShield: return(GetImageSource("#106", width, height)); default: throw new ArgumentOutOfRangeException(nameof(systemIcon), systemIcon, null); } }
public static ImageSource GetImageSource(SystemIcon systemIcon, int width, int height) { return(GetImageSource(systemIcon.Origin, systemIcon.IconIdOrIndex, width, height)); }