ScrollToOffsetAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ScrollToOffsetAction
Scrolls a ScrollViewer to the specified offsets when executed.
Members
TYPEto_refscroll_viewer_propertyhorizontal_offset_propertyvertical_offset_propertyconstructnewscroll_viewerset_scroll_viewerhorizontal_offsetset_horizontal_offsetvertical_offsetset_vertical_offset
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ScrollToOffsetAction>
Returns a strong reference to this object.
scroll_viewer_property
fn scroll_viewer_property() -> &'static StyledProperty<Option<ElementRef<ScrollViewer>>>
Identifies the ScrollViewer property.
Deviation (DEVIATIONS.md, Behaviors): the action does not own the scroll viewer, so the value is an element reference.
horizontal_offset_property
fn horizontal_offset_property() -> &'static StyledProperty<Option<f64>>
Identifies the HorizontalOffset property.
vertical_offset_property
fn vertical_offset_property() -> &'static StyledProperty<Option<f64>>
Identifies the VerticalOffset property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
scroll_viewer
fn scroll_viewer(self: &Self) -> Option<Ref<ScrollViewer>>
Gets or sets the ScrollViewer instance to scroll. This is a property of the object
model; markup resolves a name given for it to the named scroll viewer.
set_scroll_viewer
fn set_scroll_viewer(self: &Self, value: impl Into<Nullable<ScrollViewer>>)
horizontal_offset
fn horizontal_offset(self: &Self) -> Option<f64>
Gets or sets the horizontal offset to scroll to. This is a property of the object model.
set_horizontal_offset
fn set_horizontal_offset(self: &Self, value: Option<f64>)
vertical_offset
fn vertical_offset(self: &Self) -> Option<f64>
Gets or sets the vertical offset to scroll to. This is a property of the object model.
set_vertical_offset
fn set_vertical_offset(self: &Self, value: Option<f64>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<ScrollToOffsetAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.