콘텐츠로 이동

ToolBarItem class

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

An entry that runs a command.

Guide: C# Markup reference: Toolbar

public class ToolBarItem : ToolBarEntry
name description
ToolBarItem() The default constructor.
ToolBarItem(…)
Command { get; set; } Gets or sets the command this entry runs.
CommandData { get; set; }
Icon { get; set; }
Presentation { get; set; }
Text { get; set; }
static readonly CommandDataProperty The value the entry hands its command as the invocation argument, or null to let the nearest argument source supply one. Entries that share a command and differ only in this value show their own Text and Icon.
static readonly CommandProperty
static readonly IconProperty Icon shown instead of the command’s own, or null to show the command’s.
static readonly PresentationProperty How this entry shows its command, or null to follow ItemPresentation.
static readonly TextProperty Text shown instead of the command’s own, or null to show the command’s.