FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ManagedDataTransferExtensions

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

    trait ManagedDataTransferExtensions: IDataTransfer
    

    Provides helpers to retrieve managed drag-drop payloads from data transfer objects.

    Deviation (DEVIATIONS.md, Behaviors): the static class of extension methods of the reference is two extension traits, this one for data transfers and ManagedDataTransferItemExtensions for their items (the overloads of the reference); the typed forms (TryGetManagedValue<T>) are try_get_managed_value_as.

    View source

    Members

    try_get_managed_value

    fn try_get_managed_value(self: &Self, format: &str) -> Option<Rc<dyn Any>>
    

    Tries to get a managed payload for the specified application format: the stored payload, or None when the format is not present.

    Source

    try_get_managed_value_as

    fn try_get_managed_value_as<T: 'static>(self: &Self, format: &str) -> Option<Rc<T>>
    

    Tries to get a managed payload for the specified application format as a T: the stored payload, or None when it is unavailable or of another type.

    Source

    Trait implementations

    Availability

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