How to assign an embedded image resource to an image control in XAML
Asked Answered
C

1

5

I'm new to WPF. How I can use embedded resource image for an image control in WPF using XAML?

Cladding answered 30/10, 2011 at 5:33 Comment(1)
possible duplicate of WPF image resourcesHenpeck
V
8
  1. Add Image to your project then set Build Action to Resource
  2. Add Image to your xaml, e.g. <Image Source="YourImage.jpg" />
Veats answered 30/10, 2011 at 5:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.