DooDoo
DooDoo

Reputation: 13457

How to assign an embedded image resource to an image control in XAML

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

Upvotes: 5

Views: 5659

Answers (1)

Ekk
Ekk

Reputation: 5715

  1. Add Image to your project then set Build Action to Resource
  2. Add Image to your xaml, e.g. <Image Source="YourImage.jpg" />

Upvotes: 8

Related Questions