FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VisualStateManagerImpl

    trait · ferroui-controls · v0.5.0

    trait VisualStateManagerImpl: FerroObjectImpl + $crate::Upcast<VisualStateManager>
    

    The overridable members introduced by the class.

    View source

    Members

    go_to_state_core

    fn go_to_state_core(this: &Self, control: &Ref<Control>, template_root: &Ref<Control>, state_name: &str, group: Option<&Ref<VisualStateGroup>>, state: Option<&Ref<VisualState>>, use_transitions: bool) -> bool
    

    Changes the state of group to state (WinUI's overridable GoToStateCore).

    template_root is the element that has the groups; group and state are the group and the state named state_name, or None when no group has a state of that name (a custom manager is called either way). The base method changes the state when both are given and returns whether it did.

    Source

    Trait implementations

    Availability

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