Skip to main content

SplitButtonImpl

Trait SplitButtonImpl 

Source
pub trait SplitButtonImpl: ContentControlImpl + Upcast<SplitButton> {
    // Provided methods
    fn internal_is_checked(this: &Self) -> bool { ... }
    fn on_click_primary(this: &Self, e: Option<&RoutedEventArgs>) { ... }
    fn on_click_secondary(this: &Self, e: Option<&RoutedEventArgs>) { ... }
    fn on_flyout_opened(this: &Self) { ... }
    fn on_flyout_closed(this: &Self) { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn internal_is_checked(this: &Self) -> bool

A value indicating whether the button is currently checked.

This member exists only for the derived toggle split button and is unused (false) within the split button. Doing this allows the two controls to share a default style.

Source

fn on_click_primary(this: &Self, e: Option<&RoutedEventArgs>)

Invokes the Click event when the primary button part is clicked. e are the event args from the internal click event.

Source

fn on_click_secondary(this: &Self, e: Option<&RoutedEventArgs>)

Invoked when the secondary button part is clicked. e are the event args from the internal click event.

Source

fn on_flyout_opened(this: &Self)

Invoked when the split button’s flyout is opened.

Source

fn on_flyout_closed(this: &Self)

Invoked when the split button’s flyout is closed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§