Mouse Move : ♣ This event will fire when user will move the mouse with in the WPF window Mouse Down : ♣ This event will fir...
30) Example To Draw the Shapes Programmatically
Step 1 : Design MainWindow.xaml like below Step 2 : Mainwindow.xaml.cs code Note : For grid tag assign the name as “g1” in x...
29) Example for Combined Geometry to Draw VenDiagram with Union
Step 1 : Mainwindow.xaml <Window x:Class= "LineDraw.MainWindow" xmlns= "http://schemas.microsoft.com/winfx/...
28) Example to Group Geometry With in the Path
Step 1 : MainWindow.xaml <Window x:Class="LineDraw.MainWindow" xmlns="http://schemas.microsoft.com/winfx/...
27) Example to Draw the Circle with Geometry with in the Path
Step 1: MainWindow.xaml <Window x:Class="LineDraw.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2...
26) Example To Draw a line using Line Geometry with in the Path
Step 1: MainWindow.xaml <Window x:Class="LineDrawing.MainWindow" xmlns="http://schemas.microsoft.com/winf...
25) Working with Path Tag
♣ Path is capable of drawing 2 dimensional with images like rectangle , circle,, ellipse and so on. Advantages : ♣ We ca...
24) Example To Get the Below Output Using Polygon
<Window x:Class="LineWithPolygon.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation...
23) Example To Draw a Right Angle Triangle
<Window x:Class="LineWithPolygon.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation...
22) Example To Draw a Triangle Using Polygon
<Window x:Class="LineWithPolygon.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation...
21) Example to Draw a line using Polygon
Working with Polygons ♣ To create any kind of polygon we can use below code <polygon>……………</polygon> ♣ Polygon ca...
20) Example to Draw Rectangle in WPF
Step 1 : MainWindow.xaml.cs Code <Window x:Class="Drawline.MainWindow" xmlns="http://schemas.microsoft.com...
19) Example to Draw the Circle in WPF
Step 1 : MainWindow.xaml.cs Code <Window x:Class="Drawline.MainWindow" xmlns="http://schemas.microsoft.com/...
18) Example To Draw a Ellipse in WPF
Step 1 : MainWindow.xaml Code <Window x:Class="Drawline.MainWindow" xmlns="http://schemas.microsoft.com/w...
17) Example to Draw a Line in WPF
Step 1 : Write the below code with in MainWindow.xaml <Window x:Class="Drawline.MainWindow" xmlns="http://...

16) 2D Graphics or 2D Drawings in WPF
♣ In WPF we can draw below items 1. Line 2. Ellipse 3. Rectangle 4....
15) Example For Window Show, Hide and Close
Step 1 : Design of MainWindow and Window1 like below Step 2 : MainWindow.xaml.cs code using System; using System.Collecti...
14) Methods with in the Window Class
Show() : ♣ Opening a window Active() : ♣ Making window as active Close () : ♣ This metho d is used to cl...
13) Life Time of WPF Window
♣ WPF window life time contains following phases 1. Instantiation 2. Open 3. Activate ...
12) WPF Window
♣ WPF user interface can be divided into two types 1. Client area 2. Non Client area Structure of W...