WpfControl2 ( WPF )

Million $ Note:

You can muscles with every control, programmatically, for your satisfaction and research; however WPF provides all the handles to the controls, and enough support to create a nice presentation for your client.

If you have used JavaFx, which is an application that allows the developer to create Rich Internet Applications using Java platform.

Objectives:
Step:1 Create a New project

 

Step:2 Edit Code , and add the "Name" attribute to this control.

Step:3 In this example Grid control is a First Child created with the project. Although, the Grid is used for holding data from a database and can be enhanced further; here we will use it as container control.

MainWindow.xaml.cs.1.txt

Testing during runtime, since the size of the button is not defied, button is stretched out.

Step:4 Now define size and height of this control.

MainWindow.xaml.cs.2.txt

And Press "F5" to runt this application. Note Button assumed the shape of a rectangle

Step:5 In the next Step we would venture more with the controls; the challenge lies in placing the newly created controls and align with the others. Below, shows the easiest way to get around or save time in writing complex codes. ( MainWindow.xaml.txt )

Step:6 Logical analysis of the XAML code, relating to GUI counter part on the Design pane. As I mentioned before Grid poses as container control, we can add some other controls

Showing Hierarchies

Step:7 Grid Control

Step:8  Label control

Step:9 Final Runtime View, now click on Simple Button, you may have to stretch the window to view the complete text out put.

 

Step:10 General Control layout properties ( Margin="19,10,0,0")

Step:11
Step:12
Step:13
Step:14
Step:25
Step:16
Step:17