Button - WPF Tutorials step by step-Output

Button – WPF Tutorials step by step – 3

Button – WPF Tutorials step by step

Hello folks, Today I will explain you regarding Button control in WPF. I have already explained you regarding how could we create new project of WPF and basic structure of WPF project and Label in WPF.

 

Button - WPF Tutorials step by step-code-snippet

 

Lable is having below basic properties:

  1. Name: Could give name to button, which could be used in code behind as ID.
  2. Content : Content which will display in UI.
  3. IsDefault: Whenever user will hit Enter, this button would get trigger. Set in first button.
  4. Cursor: Could change cursor another than default, in first button we set cursor as “Cross”
  5. Visibility: There are three properties, Visible, Hidden and Collapsed, as you can see in the image second button’s visibility is set Hidden.

Below is the sample output of our code:

Button - WPF Tutorials step by step-Output

Let me know your feedback to improve and make it more informative.

Leave a Reply