FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ListReorderDragBehavior

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

    struct ListReorderDragBehavior
    

    Allows reordering of items inside an ItemsControl while displaying a placeholder at the insertion point.

    The placeholder is built from placeholder_template and shown in the adorner layer over the container at the index the item would be dropped at.

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

    Returns a strong reference to this object.

    Source

    placeholder_template_property

    fn placeholder_template_property() -> &'static StyledProperty<Option<Rc<dyn ITemplate>>>
    

    Identifies the PlaceholderTemplate property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    placeholder_template

    fn placeholder_template(self: &Self) -> Option<Rc<dyn ITemplate>>
    

    Gets or sets template used to build placeholder shown while reordering.

    Source

    set_placeholder_template

    fn set_placeholder_template(self: &Self, value: Option<Rc<dyn ITemplate>>)
    

    Source

    Trait implementations

    Availability

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