pub trait ButtonProps: ElementBuilder {
// Provided methods
fn click_mode<M>(self, value: impl IntoProp<ClickMode, M>) -> Self { ... }
fn command<M>(
self,
value: impl IntoProp<Option<Rc<dyn ICommand>>, M>,
) -> Self { ... }
fn hot_key<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self { ... }
fn command_parameter<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self { ... }
fn is_default<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn is_cancel<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn flyout<M>(self, value: impl IntoProp<Option<Ref<FlyoutBase>>, M>) -> Self { ... }
fn on_click(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
}Expand description
The properties and routed events of Button.
Provided Methods§
Sourcefn click_mode<M>(self, value: impl IntoProp<ClickMode, M>) -> Self
fn click_mode<M>(self, value: impl IntoProp<ClickMode, M>) -> Self
Sourcefn command<M>(self, value: impl IntoProp<Option<Rc<dyn ICommand>>, M>) -> Self
fn command<M>(self, value: impl IntoProp<Option<Rc<dyn ICommand>>, M>) -> Self
Sets Button::command_property.
Sourcefn hot_key<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self
fn hot_key<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self
Sets Button::hot_key_property.
Sourcefn command_parameter<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self
fn command_parameter<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self
Sourcefn is_default<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_default<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn flyout<M>(self, value: impl IntoProp<Option<Ref<FlyoutBase>>, M>) -> Self
fn flyout<M>(self, value: impl IntoProp<Option<Ref<FlyoutBase>>, M>) -> Self
Sets Button::flyout_property.
Sourcefn on_click(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_click(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles Button::click_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".