Button Controls For WPF In Detail

Introduction

This writing is a continuation of my previous article  in which I was briefing you about button control and I was developing a button click based message box, using Visual Studio on Windows Presentation Foundation. Here, I will be writing about the characteristics of the button in detail. Target Audience – Beginner Tips: Go through my previous writings related to Windows Presentation Foundation to get more knowledge about it. Now, let’s go through the columns given below to get an  idea about Properties, Methods and Events in Button Class: List of Properties in Button Class.

S.No.Properties
1Background
2BorderBrush
3BorderThickness
4Content
5ClickMode
6ContentTemplate
7FontFamily
8FontSize
9FontStyle
10FontWeight
11Foreground
12Height
13HorizontalAlignment
14IsEnabled
15IsPressed
16Margin
17Name
18Opacity
19Resources
20Style
21Template
22VerticalAlignment
23Visibility
24Width

List of Methods in Button class

S.No.Methods
1ClearValue
2FindName
3OnApplyTemplate
4OnContentChanged
5OnDragEnter
6OnDragLeave
7OnDragOver
8OnDrop
9OnGotFocus
10OnKeyDown
11OnKeyUp
12OnLostFocus
13SetBinding

List of Events in Button class

S.No.Events of Button Class
1Click
2DataContextChanged
3DragEnter
4DragLeave
5DragOver
6DragStarting
7GotFocus
8Holding
9IsEnabledChanged
10KeyDown
11KeyUp
12LostFocus
13SizeChanged