RibbonButton Constructor (String, ICommand, ICommandId, Object, ImageSource, ImageSource)
Lo siguiente se aplica a v2.
Inicializa una nueva instancia de la clase RibbonButton.
Espacio de nombres: Microsoft.WebMatrix.Extensibility
Ensamblado: Microsoft.WebMatrix.Extensibility (en Microsoft.WebMatrix.Extensibility.dll)
Sintaxis
'Declaración
Protected Sub New ( _
label As String, _
command As ICommand, _
commandId As ICommandId, _
commandParameter As Object, _
smallImage As ImageSource, _
largeImage As ImageSource _
)
'Uso
Dim label As String
Dim command As ICommand
Dim commandId As ICommandId
Dim commandParameter As Object
Dim smallImage As ImageSource
Dim largeImage As ImageSource
Dim instance As New RibbonButton(label, command, _
commandId, commandParameter, smallImage, _
largeImage)
protected RibbonButton(
string label,
ICommand command,
ICommandId commandId,
Object commandParameter,
ImageSource smallImage,
ImageSource largeImage
)
protected:
RibbonButton(
String^ label,
ICommand^ command,
ICommandId^ commandId,
Object^ commandParameter,
ImageSource^ smallImage,
ImageSource^ largeImage
)
new :
label:string *
command:ICommand *
commandId:ICommandId *
commandParameter:Object *
smallImage:ImageSource *
largeImage:ImageSource -> RibbonButton
protected function RibbonButton(
label : String,
command : ICommand,
commandId : ICommandId,
commandParameter : Object,
smallImage : ImageSource,
largeImage : ImageSource
)
Parámetros
label
Tipo: System.StringEtiqueta del elemento.
command
Tipo: System.Windows.Input.ICommandUn comando que se debe invocar cuando se pulsa el botón.
commandId
Tipo: Microsoft.WebMatrix.Extensibility.ICommandIdValor de CommandId que se debe invocar cuando se pulsa el botón.
commandParameter
Tipo: System.ObjectUn parámetro de comando el comando o para CommandId.
smallImage
Tipo: System.Windows.Media.ImageSourceUna imagen 16x16 para el botón.
largeImage
Tipo: System.Windows.Media.ImageSourceUna imagen 32x32 para el botón.