FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlProps

    trait · ferroui-view · v0.5.0

    trait ControlProps: ElementBuilder
    

    The properties and routed events of Control.

    View source

    Members

    focus_adorner

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

    Sets Control::focus_adorner_property.

    Source

    tag

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

    Sets Control::tag_property.

    Source

    context_menu

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

    Sets Control::context_menu_property.

    Source

    context_flyout

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

    Sets Control::context_flyout_property.

    Source

    on_request_bring_into_view

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

    Handles Control::request_bring_into_view_event.

    Source

    on_loaded

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

    Handles Control::loaded_event.

    Source

    on_unloaded

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

    Handles Control::unloaded_event.

    Source

    on_size_changed

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

    Handles Control::size_changed_event.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.