Skip to main content

ControlProps

Trait ControlProps 

Source
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§

Source

fn focus_adorner<M>( self, value: impl IntoProp<Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>, M>, ) -> Self

Source

fn tag<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self

Source

fn context_menu<M>( self, value: impl IntoProp<Option<Ref<ContextMenu>>, M>, ) -> Self

Source

fn context_flyout<M>( self, value: impl IntoProp<Option<Ref<FlyoutBase>>, M>, ) -> Self

Source

fn on_request_bring_into_view( self, handler: impl Fn(&RequestBringIntoViewEventArgs) + 'static, ) -> Self

Source

fn on_loaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Source

fn on_unloaded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Source

fn on_size_changed( self, handler: impl Fn(&SizeChangedEventArgs) + 'static, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§