콘텐츠로 이동

Button class

이 콘텐츠는 아직 번역되지 않았습니다.

A button control that responds to clicks.

Guide: C# Markup reference: Button

public class Button : CommandSourceControl
name description
Button() The default constructor.
CanClick { get; set; } Asked whether the button can be clicked, for a button whose condition is local enough that a command would be ceremony. Combined with IsEnabled and with the command’s own answer rather than replacing either, so any of the three disables the button.
CommandPresentationMode { get; set; } Gets or sets which command presentation parts are used as generated content; the default is None.
event Click Occurs when the button is clicked.
static readonly CommandPresentationModeProperty
static readonly CommandProperty Compatibility alias for CommandProperty, which now owns the slot.
static readonly ContentProperty Compatibility alias for ContentProperty, which now owns the slot.