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