SplitButton.CurrentButton
Description:
Gets or sets the current PushButton of the SplitButton.
Gets or sets the current PushButton of the SplitButton.
Remarks:
This property is applicable only if IsSynchronizedWithCurrentItem is true. The default value of this property will be the first enabled PushButton in the drop down list after the SplitButton is shown.
This property is applicable only if IsSynchronizedWithCurrentItem is true. The default value of this property will be the first enabled PushButton in the drop down list after the SplitButton is shown.
public PushButton CurrentButton { get; set; }
-
Thrown when trying to set the CurrentButton tonullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when trying to set the CurrentButton to a button which is not in current drop-down list.
-
Thrown when trying to set the CurrentButton if IsSynchronizedWithCurrentItem is false.