Sender: Represents this control
Button btn1= (button) sender;//get this control
Btn1. text= "Button control displays the name";
Collection class:
List<int> list1=new list<int>;
List1. ADD (11);
List1. ADD (22); Add the number 22 to the collection List1
Similar to arrays, but stored in a linked list, less efficient than arrays
Advantages: Variable length
Array:
Int[] A1=new int[2];
a1[0]=11;
a1[1]=22;
Collection Class Other properties: Remove Remove, count statistic length
MessageBox.Show (List1.count.ToString ());
List1.remove (11);
XAML file:
Describes the interface layout. Adding properties to XAML files: Automatically display the list of properties Ctrl+j
Text Box control properties: Show and Hide
The value of visibility is an enumeration type: visible collapsed not visible
txtbox1.visibility=system.windows.visibility.collapsed;
C # Personnel Management system first day. NET difficulty enhancement and XAML Foundation