Home » Tutorials » Button – WPF Tutorials step by step – 3

Button – WPF Tutorials step by step – 3

Label - WPF Tutorials step by step-2
TextBox - WPF Tutorials step by step - 4

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.

About

Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload CAPTCHA.




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.