FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScrollToOffsetAction

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct ScrollToOffsetAction
    

    Scrolls a ScrollViewer to the specified offsets when executed.

    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<ScrollToOffsetAction>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    horizontal_offset_property

    fn horizontal_offset_property() -> &'static StyledProperty<Option<f64>>
    

    Identifies the HorizontalOffset property.

    Source

    vertical_offset_property

    fn vertical_offset_property() -> &'static StyledProperty<Option<f64>>
    

    Identifies the VerticalOffset property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    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.

    Source

    set_scroll_viewer

    fn set_scroll_viewer(self: &Self, value: impl Into<Nullable<ScrollViewer>>)
    

    Source

    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.

    Source

    set_horizontal_offset

    fn set_horizontal_offset(self: &Self, value: Option<f64>)
    

    Source

    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.

    Source

    set_vertical_offset

    fn set_vertical_offset(self: &Self, value: Option<f64>)
    

    Source

    Trait implementations

    Availability

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