pub trait ControlProps: ElementBuilder {
// Provided methods
fn focus_adorner<M>(
self,
value: impl IntoProp<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>, M>,
) -> Self { ... }
fn tag<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self { ... }
fn context_menu<M>(
self,
value: impl IntoProp<Option<Ref<ContextMenu>>, M>,
) -> Self { ... }
fn context_flyout<M>(
self,
value: impl IntoProp<Option<Ref<FlyoutBase>>, M>,
) -> Self { ... }
fn on_request_bring_into_view(
self,
handler: impl Fn(&RequestBringIntoViewEventArgs) + 'static,
) -> Self { ... }
fn on_loaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
fn on_unloaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
fn on_size_changed(
self,
handler: impl Fn(&SizeChangedEventArgs) + 'static,
) -> Self { ... }
}Expand description
The properties and routed events of Control.
Provided Methods§
Sourcefn focus_adorner<M>(
self,
value: impl IntoProp<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>, M>,
) -> Self
fn focus_adorner<M>( self, value: impl IntoProp<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>, M>, ) -> Self
Sourcefn tag<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
fn tag<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
Sets Control::tag_property.
Sourcefn context_flyout<M>(
self,
value: impl IntoProp<Option<Ref<FlyoutBase>>, M>,
) -> Self
fn context_flyout<M>( self, value: impl IntoProp<Option<Ref<FlyoutBase>>, M>, ) -> Self
Sourcefn on_request_bring_into_view(
self,
handler: impl Fn(&RequestBringIntoViewEventArgs) + 'static,
) -> Self
fn on_request_bring_into_view( self, handler: impl Fn(&RequestBringIntoViewEventArgs) + 'static, ) -> Self
Sourcefn on_loaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_loaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles Control::loaded_event.
Sourcefn on_unloaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_unloaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles Control::unloaded_event.
Sourcefn on_size_changed(
self,
handler: impl Fn(&SizeChangedEventArgs) + 'static,
) -> Self
fn on_size_changed( self, handler: impl Fn(&SizeChangedEventArgs) + 'static, ) -> Self
Handles Control::size_changed_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".