Skip to content

ControlExtensions.BindCommand method (1 of 2)

Binds the semantic command invoked by a segment button.

public static SegmentButton BindCommand(this SegmentButton button, ObservableValue<Command?> source)

Sets: CommandSourceControl.Command


ControlExtensions.BindCommand<T> method (2 of 2)

Section titled “ControlExtensions.BindCommand<T> method (2 of 2)”

Binds the button’s semantic command to an observable value.

public static T BindCommand<T>(this T button, ObservableValue<Command?> source,
CommandPresentationMode presentation = CommandPresentationMode.None)
where T : Button