Example #1
0
 public static ImageSource GetImageSource(SIID iconId, bool large = false)
 {
     using var icon = StockIcons.GetStockIcon(iconId, large);
     return(Imaging.CreateBitmapSourceFromHIcon(icon.Handle, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()));
 }