Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add Image of any size using "XAML icon name" to a WPF window
#1
I can add image to WPF with Icon's name using:
 
Code:
Copy      Help
FrameworkElement LoadWpfImageElement(string image)

But is there an easy way to set its size inside WPF windows by just using Icon's name without converting FrameworkElement -> Bitmap -> Base64 -> BitmapFrame then assign it to Image.Source


Messages In This Thread
How to add Image of any size using "XAML icon name" to a WPF window - by hiro - 03-22-2025, 03:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)