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.
Members
TYPEto_refpage_transition_propertyis_transition_reversed_propertytransition_completed_eventconstructnewpage_transitionset_page_transitionis_transition_reversedset_is_transition_reversedtransition_completed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TransitioningContentControl>
Returns a strong reference to this object.
page_transition_property
fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
Defines the PageTransition property.
is_transition_reversed_property
fn is_transition_reversed_property() -> &'static StyledProperty<bool>
Defines the IsTransitionReversed property.
transition_completed_event
fn transition_completed_event() -> &'static RoutedEvent<TransitionCompletedEventArgs>
Defines the TransitionCompleted routed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
page_transition
fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
The animation played when content appears and disappears.
set_page_transition
fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
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.
set_is_transition_reversed
fn set_is_transition_reversed(self: &Self, value: bool)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TransitioningContentControl>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplControlImplTemplatedControlImplFerroObjectImplVisualImplLayoutableImplContentControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.