OpenFolderPickerAction
struct · ferroui-xaml-interactions · v0.5.0
struct OpenFolderPickerAction
An action that will open a folder picker dialog.
The picked folders (Vec<StorageFolderRef>) are given to the handlers of pick and,
unless a handler handled them, to the command.
Deviation (DEVIATIONS.md, Behaviors): the Pick event is an event of the Rust API (a handler
list), not declared to markup.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<OpenFolderPickerAction>
Returns a strong reference to this object.
on_pick
fn on_pick(self: &Self, args: &FolderPickerEventArgs)
Raises the pick event.
allow_multiple_property
fn allow_multiple_property() -> &'static StyledProperty<bool>
Identifies the AllowMultiple property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
pick
fn pick(self: &Self, handler: impl Fn(&FolderPickerEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Occurs after the folder picker successfully returns one or more folders. Disposing the returned handle removes the handler.
allow_multiple
fn allow_multiple(self: &Self) -> bool
Gets or sets an option indicating whether the open picker allows users to select multiple folders. This is a property of the object model.
set_allow_multiple
fn set_allow_multiple(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeOpenFolderPickerActionImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<OpenFolderPickerAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementActionImplOpenFolderPickerActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.