FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScrollToItemBehavior

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

    struct ScrollToItemBehavior
    

    Scrolls the associated ItemsControl to a specific item.

    While the items control is in the visual tree, every item the item 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<ScrollToItemBehavior>
    

    Returns a strong reference to this object.

    Source

    item_property

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

    Identifies the Item property.

    Deviation (DEVIATIONS.md, Behaviors): the observable (IObservable<object> of the reference) is held as an untyped value: an Rc<dyn IObservable<Option<BoxedValue>>> or an Rc<dyn IObservable<BoxedValue>>, 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

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

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

    Source

    set_item

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

    Source

    Trait implementations

    Availability

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