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).
Members
TYPEto_refcontent_during_drag_propertybackground_during_drag_propertyconstructnewcontent_during_dragset_content_during_dragbackground_during_dragset_background_during_drag
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContentControlFilesDropBehavior>
Returns a strong reference to this object.
content_during_drag_property
fn content_during_drag_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the ContentDuringDrag property.
background_during_drag_property
fn background_during_drag_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Identifies the BackgroundDuringDrag property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
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.
set_content_during_drag
fn set_content_during_drag(self: &Self, value: Option<BoxedValue>)
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.
set_background_during_drag
fn set_background_during_drag(self: &Self, value: Option<Rc<dyn IBrush>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ContentControlFilesDropBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplStyledElementBehaviorImplFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.