pub struct PageSlide { /* private fields */ }Expand description
Transitions between two pages by sliding them horizontally or vertically.
Implementations§
Source§impl PageSlide
impl PageSlide
Sourcepub fn with_duration(duration: TimeSpan, orientation: SlideAxis) -> Self
pub fn with_duration(duration: TimeSpan, orientation: SlideAxis) -> Self
Creates a slide with the given duration and axis.
pub fn set_duration(&self, value: TimeSpan)
Sourcepub fn orientation(&self) -> SlideAxis
pub fn orientation(&self) -> SlideAxis
The direction of the animation.
pub fn set_orientation(&self, value: SlideAxis)
Sourcepub fn slide_in_easing(&self) -> Easing
pub fn slide_in_easing(&self) -> Easing
The easing used for the page that slides in.
pub fn set_slide_in_easing(&self, value: impl Into<Easing>)
Sourcepub fn slide_out_easing(&self) -> Easing
pub fn slide_out_easing(&self) -> Easing
The easing used for the page that slides out.
pub fn set_slide_out_easing(&self, value: impl Into<Easing>)
pub fn set_fill_mode(&self, value: FillMode)
Trait Implementations§
Source§impl IPageTransition for PageSlide
impl IPageTransition for PageSlide
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 PageSlide
impl IProgressPageTransition for PageSlide
Source§impl MarkupTyped for PageSlide
impl MarkupTyped for PageSlide
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for PageSlide
impl !RefUnwindSafe for PageSlide
impl !Send for PageSlide
impl !Sync for PageSlide
impl !UnwindSafe for PageSlide
impl Unpin for PageSlide
impl UnsafeUnpin for PageSlide
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