FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContentControlFilesDropBehavior

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

    struct ContentControlFilesDropBehavior
    

    Behavior that handles file drop operations for ContentControl: while files are dragged over the control it shows content_during_drag on background_during_drag, and the command of the behavior executes with the dropped files (see FilesDropBehavior).

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

    Returns a strong reference to this object.

    Source

    content_during_drag_property

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

    Identifies the ContentDuringDrag property.

    Source

    background_during_drag_property

    fn background_during_drag_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Identifies the BackgroundDuringDrag 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

    content_during_drag

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

    If the sender is a content control, this content is set during drag over.

    Source

    set_content_during_drag

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

    Source

    background_during_drag

    fn background_during_drag(self: &Self) -> Option<Rc<dyn IBrush>>
    

    If the sender is a content control, this background is set during drag over.

    Source

    set_background_during_drag

    fn set_background_during_drag(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    Trait implementations

    Availability

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