Exemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     image40.Source = StockIcons.MobilePC;
     image41.Source = StockIcons.Printer;
     StockIcon b42 = new StockIcon(StockIconIdentifier.AutoList);
     image42.Source = b42.Bitmap;
     StockIcon b43 = new StockIcon(StockIconIdentifier.ServerShare, StockIconOptions.Selected);
     image43.Source = b43.Bitmap;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Retrieves the bitmap for the specified stock icon.
 /// </summary>
 /// <param name="identifier"></param>
 /// <returns>The icon to retrieve.</returns>
 public static BitmapSource GetBitmapSource(StockIconIdentifier identifier)
 {
     return(StockIcon.GetBitmapSource(identifier, 0));
 }