Class: Button

Namespace: System.Windows.Controls

Library: PresentationFramework

Some properties:

Background

The value will be a color.

BorderBrush

Also a color.

BorderThickness

Content

The text in the button.

FontFamily

FontSize

FontStyle

FontWeight

Foreground

Also a color.

Height

IsEnabled

You can change to false, disabling the button.

Margin

Name

Opacity

Visibility

Width

Some events. To be overrided.

Click

This is the most important. To be used at the .XAML.CS file to define what will occur when the button is clicked. At the previous samples you can see how to do this.

And the mouse events:


  MouseDoubleClick    
  MouseDown    
  MouseEnter    
  MouseLeave    
  MouseLeftButtonDown    
  MouseLeftButtonUp    
  MouseMove    
  MouseRightButtonDown   
  MouseRightButtonUp    
  MouseUp    
   



PREVIOUS LESSON NEXT LESSON
T.CONTENTS HOMEPAGE