Skip to main content

How to Add Image in WPF C# Application ?


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

Popular posts from this blog

What is SQL?

SQL stands for Structured Query Language. SQL is used to communicate with a database. According to American National Standards Institute (ANSI), it is the standard language for relational database management systems. SQL statements are used to define and manipulate data on a database.  Some common relational database management systems that use SQL are: Oracle, Microsoft SQL Server, Access, etc.

How to Create Database in SQL Server

This article demonstrates how to Create Database in SQL server This steps is based on  SQL Server 2017 Express Edition (2008 edition is almost same )  Open Microsoft SQL Server Management Studio   Connect to Server (Login with id and password)    Right click over Databases Folder in Object Explorer Window     Select New Database... Then Open a New Database Window Then Enter a Name For  Database Then click OK then we can see our new data base under Databases folder in Object Explorer. See Our YouTube Video And Subscribe Our Channel For More Details 

What is C# ?

C# is pronounced as "C-Sharp". It is an object-oriented programming language provided by Microsoft that runs on .Net Framework. We can develop different types of Window and Web applications by the help of C# programming language. C# is designed for CLI (Common Language Infrastructure). CLI is a specification that describes executable code and runtime environment. C# is approved as a standard by ECMA and ISO.