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