Button Properties

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Button type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone ActualHeight Gets the rendered height of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone ActualWidth Gets the rendered width of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone AllowDrop Gets or sets a value that determines whether this UIElement can be a drop target for purposes of Silverlight drag-and-drop operations. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Background Gets or sets a brush that provides the background of the control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone BorderBrush Gets or sets a brush that describes the border background of a control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone BorderThickness Gets or sets the border thickness of a control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone CacheMode Gets or sets a value that indicates that rendered content should be cached when possible. (Inherited from UIElement.)
Public property CharacterSpacing Gets or sets the distance between characters of text in the control measured in 1000ths of the font size. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone ClickMode Gets or sets when the Click event occurs. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone Clip Gets or sets the Geometry used to define the outline of the contents of a UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Command Gets or sets the command to invoke when this button is pressed. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone CommandParameter Gets or sets the parameter to pass to the Command property. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone Content Gets or sets the value of the ContentControl dependency property. (Inherited from ContentControl.)
Public propertySupported by Silverlight for Windows Phone ContentTemplate Gets or sets the data template that is used to display the content of the ContentControl. (Inherited from ContentControl.)
Public propertySupported by Silverlight for Windows Phone Cursor Gets or sets the cursor image that displays while the mouse pointer is over a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone DataContext Gets or sets the data context for a FrameworkElement when it participates in data binding. (Inherited from FrameworkElement.)
Protected propertySupported by Silverlight for Windows Phone DefaultStyleKey Gets or sets the key that references the default style for the control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone DesiredSize Gets the size that this UIElement computed during the measure pass of the layout process. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Dispatcher Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.)
Public property Effect Gets or sets the pixel shader effect to use for rendering this UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone FlowDirection Gets or sets the direction that text and other user interface elements flow within any parent element that controls their layout. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone FontFamily Gets or sets the font used to display text in the control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone FontSize Gets or sets the size of the text in this control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone FontStretch Gets or sets the degree to which a font is condensed or expanded on the screen. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone FontStyle Gets or sets the style in which the text is rendered. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone FontWeight Gets or sets the thickness of the specified font. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Foreground Gets or sets a brush that describes the foreground color. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Height Gets or sets the suggested height of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone HorizontalAlignment Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone HorizontalContentAlignment Gets or sets the horizontal alignment of the control's content. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone IsEnabled Gets or sets a value indicating whether the user can interact with the control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone IsFocused Gets a value that determines whether the button has focus. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone IsHitTestVisible Gets or sets whether the contained area of this UIElement can return true values for hit testing. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone IsMouseOver Gets a value indicating whether the mouse pointer is located over this button control. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone IsPressed Gets a value that indicates whether a ButtonBase is currently in a pressed state. (Inherited from ButtonBase.)
Public propertySupported by Silverlight for Windows Phone IsTabStop Gets or sets a value that indicates whether a control is included in tab navigation. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Language Gets or sets localization/globalization language information that applies to a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Margin Gets or sets the outer margin of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone MaxHeight Gets or sets the maximum height constraint of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone MaxWidth Gets or sets the maximum width constraint of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone MinHeight Gets or sets the minimum height constraint of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone MinWidth Gets or sets the minimum width constraint of a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Name Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Opacity Gets or sets the degree of the object's opacity. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone OpacityMask Gets or sets the brush used to alter the opacity of regions of this object. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Padding Gets or sets the padding inside a control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Parent Gets the parent object of this FrameworkElement in the object tree. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Projection Gets or sets the perspective projection (3-D effect) to apply when rendering this UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone RenderSize Gets the final render size of a UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone RenderTransform Gets or sets transform information that affects the rendering position of a UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone RenderTransformOrigin Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Resources Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Style Gets or sets an instance Style that is applied for this object during rendering. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone TabIndex Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone TabNavigation Gets or sets a value that modifies how tabbing and TabIndex work for this control. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Tag Gets or sets an arbitrary object value that can be used to store custom information about this object. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone Template Gets or sets a control template. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Triggers Gets the collection of triggers for animations that are defined for a FrameworkElement. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone UseLayoutRounding Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone VerticalAlignment Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. (Inherited from FrameworkElement.)
Public propertySupported by Silverlight for Windows Phone VerticalContentAlignment Gets or sets the vertical alignment of the control's content. (Inherited from Control.)
Public propertySupported by Silverlight for Windows Phone Visibility Gets or sets the visibility of a UIElement. A UIElement that is not visible does not render and does not communicate its desired size to layout. (Inherited from UIElement.)
Public propertySupported by Silverlight for Windows Phone Width Gets or sets the width of a FrameworkElement. (Inherited from FrameworkElement.)

Top