Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
ButtonBase Class
Other versions are also available for the following:
.NET Framework Class Library for Silverlight
ButtonBase Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents the base class for all Button controls.

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
Visual C++
public ref class ButtonBase abstract : public ContentControl
JScript
public abstract class ButtonBase extends ContentControl

Handle the Click event to respond when the user clicks a ButtonBase. The ButtonBase sets the AcceptsReturn attached property to true.

Note:

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker