Thursday 21 February 2013

Content Controls


Content Controls are mainly parent containers to hold the content. It displays information to the user to be viewed but that generally won't be modified.
It has three main points.
1-Property--->A Property specifies the behavior of object's and  appearance . 
 example,  IsEnabled property 

2-Method--->A method is a code block containing a series of statements
example  CountMethod(), counts the number of items


3-Event--->An event is related when a control raises  that something has to happened. 
 example TextChanged event .


<Label Content="Name Name="lblEmployeeName" Height="25" width="100" />
<Button Name="btnCount" Content="Count" Click="btnCount_Click" /> 

ToolTip: Displays a tooltip for another object. 
 
<TextBox  Name="txtEmployeeName" Text="" ToolTip="Employee name" />

<Border HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"Height="200" BorderThickness="2">



 

No comments:

Post a Comment