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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ScrollToItemIndexBehavior>
Returns a strong reference to this object.
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.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
item_index
fn item_index(self: &Self) -> Option<BoxedValue>
Gets or sets the observable that produces item indexes to scroll into view.
set_item_index
fn set_item_index(self: &Self, value: Option<BoxedValue>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeBehaviorImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDisposingBehaviorImplExtStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ScrollToItemIndexBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingBehaviorImplAttachedToVisualTreeBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.