FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransitioningContentControl

    struct · ferroui-controls · v0.5.0

    struct TransitioningContentControl
    

    Displays the content according to a data template, using a page transition to move between the old and new content.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TransitioningContentControl>
    

    Returns a strong reference to this object.

    Source

    page_transition_property

    fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
    

    Defines the PageTransition property.

    Source

    is_transition_reversed_property

    fn is_transition_reversed_property() -> &'static StyledProperty<bool>
    

    Defines the IsTransitionReversed property.

    Source

    transition_completed_event

    fn transition_completed_event() -> &'static RoutedEvent<TransitionCompletedEventArgs>
    

    Defines the TransitionCompleted routed event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    page_transition

    fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
    

    The animation played when content appears and disappears.

    Source

    set_page_transition

    fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
    

    Source

    is_transition_reversed

    fn is_transition_reversed(self: &Self) -> bool
    

    Whether the control is animated in the reverse direction.

    May not apply to all transitions.

    Source

    set_is_transition_reversed

    fn set_is_transition_reversed(self: &Self, value: bool)
    

    Source

    transition_completed

    fn transition_completed(self: &Self, handler: impl Fn(&Interactive, &TransitionCompletedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when the old content isn't needed anymore by the control, because the transition has completed.

    Source

    Trait implementations

    Availability

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