WpfControl2 ( WPF ) |
|
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. |
Step:4 Now define size and height of this control. |
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 |
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 |