.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)
Syntax

Visual Basic (Declaration)
Public MustInherit Class ButtonBase _
    Inherits ContentControl
Visual Basic (Usage)
Dim instance As ButtonBase
C#
public abstract class ButtonBase : ContentControl
Remarks

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.

Inheritance Hierarchy

System..::.Object
  System.Windows..::.DependencyObject
    System.Windows..::.UIElement
      System.Windows..::.FrameworkElement
        System.Windows.Controls..::.Control
          System.Windows.Controls..::.ContentControl
            System.Windows.Controls.Primitives..::.ButtonBase
              System.Windows.Controls..::.Button
              System.Windows.Controls..::.HyperlinkButton
              System.Windows.Controls.Primitives..::.RepeatButton
              System.Windows.Controls.Primitives..::.ToggleButton
Thread Safety

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

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

See Also

Reference

Tags :


Page view tracker