pub trait VirtualizingPanelImpl: PanelImpl + Upcast<VirtualizingPanel> {
// Provided methods
fn scroll_into_view(this: &Self, index: i32) -> Option<Ref<Control>> { ... }
fn container_from_index(this: &Self, index: i32) -> Option<Ref<Control>> { ... }
fn index_from_container(this: &Self, container: &Ref<Control>) -> i32 { ... }
fn get_realized_containers(this: &Self) -> Option<Vec<Ref<Control>>> { ... }
fn get_control_in_direction(
this: &Self,
direction: NavigationDirection,
from: Option<&Ref<InputElement>>,
wrap: bool,
) -> Option<Ref<InputElement>> { ... }
fn on_items_control_changed(
this: &Self,
old_value: Option<&Ref<ItemsControl>>,
) { ... }
fn on_items_changed(
this: &Self,
items: &Rc<ItemsSourceView>,
e: &ItemsChangedEventArgs<'_>,
) { ... }
}Expand description
The overridable members introduced by the class.
Provided Methods§
Sourcefn scroll_into_view(this: &Self, index: i32) -> Option<Ref<Control>>
fn scroll_into_view(this: &Self, index: i32) -> Option<Ref<Control>>
Scrolls the specified item into view.
Returns the element with the specified index, or None if the
element could not be brought into view.
Sourcefn container_from_index(this: &Self, index: i32) -> Option<Ref<Control>>
fn container_from_index(this: &Self, index: i32) -> Option<Ref<Control>>
Returns the container for the item at the specified index.
Returns the container for the item at the specified index within
the item collection, if the item is realized; otherwise, None.
Note for implementors: if the item at the specified index is an item-is-self-container item that has previously been realized, then the item should be returned even if it currently falls outside the realized viewport.
Sourcefn index_from_container(this: &Self, container: &Ref<Control>) -> i32
fn index_from_container(this: &Self, container: &Ref<Control>) -> i32
Returns the index to the item that has the specified realized container.
Returns the index to the item that corresponds to the specified
realized container, or -1 if container is not found.
Sourcefn get_realized_containers(this: &Self) -> Option<Vec<Ref<Control>>>
fn get_realized_containers(this: &Self) -> Option<Vec<Ref<Control>>>
Gets the currently realized containers.
Sourcefn get_control_in_direction(
this: &Self,
direction: NavigationDirection,
from: Option<&Ref<InputElement>>,
wrap: bool,
) -> Option<Ref<InputElement>>
fn get_control_in_direction( this: &Self, direction: NavigationDirection, from: Option<&Ref<InputElement>>, wrap: bool, ) -> Option<Ref<InputElement>>
Gets the next control in the specified direction.
from is the control from which movement begins and wrap
tells whether to wrap around when the first or last item is
reached.
Sourcefn on_items_control_changed(this: &Self, old_value: Option<&Ref<ItemsControl>>)
fn on_items_control_changed(this: &Self, old_value: Option<&Ref<ItemsControl>>)
Called when the ItemsControl that owns the panel changes.
Sourcefn on_items_changed(
this: &Self,
items: &Rc<ItemsSourceView>,
e: &ItemsChangedEventArgs<'_>,
)
fn on_items_changed( this: &Self, items: &Rc<ItemsSourceView>, e: &ItemsChangedEventArgs<'_>, )
Called when the items collection of the owner ItemsControl
changes.
This method is called a collection changed event is raised by
the items, or when the items property of the items control is
set to a new collection, in which case the action will be a
reset.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".