pub struct CrossFade { /* private fields */ }Expand description
Defines a cross-fade animation between two visuals.
Implementations§
Source§impl CrossFade
impl CrossFade
Sourcepub fn with_duration(duration: TimeSpan) -> Self
pub fn with_duration(duration: TimeSpan) -> Self
Creates a cross-fade with the given duration.
pub fn set_duration(&self, value: TimeSpan)
Sourcepub fn fade_in_easing(&self) -> Easing
pub fn fade_in_easing(&self) -> Easing
The easing function used to fade in.
pub fn set_fade_in_easing(&self, value: impl Into<Easing>)
Sourcepub fn fade_out_easing(&self) -> Easing
pub fn fade_out_easing(&self) -> Easing
The easing function used to fade out.
pub fn set_fade_out_easing(&self, value: impl Into<Easing>)
pub fn set_fill_mode(&self, value: FillMode)
Sourcepub fn start_cross_fade(
&self,
from: Option<&Ref<Visual>>,
to: Option<&Ref<Visual>>,
cancellation_token: CancellationToken,
) -> DispatcherTask<()> ⓘ
pub fn start_cross_fade( &self, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, cancellation_token: CancellationToken, ) -> DispatcherTask<()> ⓘ
Starts the animation: fades from out and to in. When it has
ended without being cancelled, from is hidden.
Trait Implementations§
Source§impl IPageTransition for CrossFade
impl IPageTransition for CrossFade
Source§fn start(
&self,
from: Option<&Ref<Visual>>,
to: Option<&Ref<Visual>>,
_forward: bool,
cancellation_token: CancellationToken,
) -> DispatcherTask<()> ⓘ
fn start( &self, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, _forward: bool, cancellation_token: CancellationToken, ) -> DispatcherTask<()> ⓘ
Starts the animation. Read more
Source§fn as_progress_page_transition(&self) -> Option<&dyn IProgressPageTransition>
fn as_progress_page_transition(&self) -> Option<&dyn IProgressPageTransition>
The transition as a progress-driven transition, if it is one.
Source§fn as_page_slide(&self) -> Option<&PageSlide>
fn as_page_slide(&self) -> Option<&PageSlide>
The transition as a page slide, if it is one.
Source§fn as_composite_page_transition(&self) -> Option<&CompositePageTransition>
fn as_composite_page_transition(&self) -> Option<&CompositePageTransition>
The transition as a composite page transition, if it is one.
Source§impl IProgressPageTransition for CrossFade
impl IProgressPageTransition for CrossFade
Source§impl MarkupTyped for CrossFade
impl MarkupTyped for CrossFade
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !RefUnwindSafe for CrossFade
impl !Send for CrossFade
impl !Sync for CrossFade
impl !UnwindSafe for CrossFade
impl Freeze for CrossFade
impl Unpin for CrossFade
impl UnsafeUnpin for CrossFade
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more