FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScrollToItemIndexBehavior

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

    struct ScrollToItemIndexBehavior
    

    Scrolls the associated ItemsControl to a given item index.

    While the items control is in the visual tree, every index the item_index observable produces is scrolled into view.

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

    Returns a strong reference to this object.

    Source

    item_index_property

    fn item_index_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the ItemIndex property.

    Deviation (DEVIATIONS.md, Behaviors): the observable (IObservable<int> of the reference) is held as an untyped value, an Rc<dyn IObservable<i32>>, as the observable sources of the other behaviors of the port; another value is not an observable.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    item_index

    fn item_index(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the observable that produces item indexes to scroll into view.

    Source

    set_item_index

    fn set_item_index(self: &Self, value: Option<BoxedValue>)
    

    Source

    Trait implementations

    Availability

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