Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 2
ButtonBase Class

  Switch on low bandwidth view
This page is specific to
Microsoft Silverlight 2

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
ButtonBase Class

Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public MustInherit Class ButtonBase _
    Inherits ContentControl
Visual Basic (Usage)
Dim instance As ButtonBase
C#
public abstract class ButtonBase : ContentControl

Handle the Click event to respond when the user clicks a ButtonBase. The ButtonBase responds to keyboard input.

NoteNote:

You should use the Click event to detect a button click instead of using MouseLeftButtonDown or MouseLeftButtonUp. For more information, see the Click event.

Content Model: ButtonBase is a ContentControl. Its content property is Content. For more information, see Control Content Models.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker