WpfControl3 ( WPF )

Objectives:
  • .Add children
  • Code (file.xaml.cs) prevails over (file.xaml)
Step:1 Create a New project

 

Step:2 Remove Grid Element and Add Label Element

You may like to spend some time to know the properties and how you can take benefit of the GUI provided with the software. FYI, if you are fiddling around a control like "Target", it may set you a value you selected while "fiddling" , you will have an option to "Reset" back to the original setup. 

Code : MainWindow.xaml.1.txt

Step:3 Can Label contain valid children declared after it's Name attribute? No; What happens we are creating new control when we have an Label element is already present ? Label control will be masked by newly created control programmatically

Edit xaml.cs code with MainWindow.xaml.cs.txt

 

Step:4 Run time Views

Click on the top button

Now click on the second button

Step:5
Step:6
Step:7
Step:8
Step:9
Step:10
Step:11
Step:12
Step:13
Step:14
Step:25
Step:16
Step:17