WPF Provides an integrated system for building user interfaces with common media elements like images, audio, and video.In These article we discus about how to add image in WPF Application.
First Create A WPF Application (How to Create a WPF application in Visual Studio with C#?)
Open Solution Explorer, it is a tool window in the Visual Studio integrated development environment (IDE) that displays the contents of a solution, which includes the solution's projects and each project's items.
If Solution Explorer is not already visible, click Solution Explorer on the View menu
How to Create a folder in Visual Studio Project
Select Our Project from Solution Explorer window Then Right Click Then popup a menu then choose Add --> New Folder from that menu.Then a Folder Generated , Rename that as Images
- Select and Right click over our new folder Images, then Popup a menu
- Choose Add --> Existing Item...
Then We Will See A File Browsing Window,
- Choose file type as image files
- Select our image
- Click Add Button
- Drag and drop an Image Control From Toolbox to our Window
- Open Properties Window
- Add Source as Images\BelievableSolution.png
Then we can see our Image In Image Control
Comments
Post a Comment