FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InvokeCommandActionBase

    struct · ferroui-xaml-interactivity · v0.5.0

    struct InvokeCommandActionBase
    

    Command action base class: an action that invokes a command, reports whether the command can execute (can_execute_command) and can make the input element of its trigger follow it (use_command_can_execute_for_is_enabled).

    The command is observed while the action is in the logical tree of its trigger.

    The class is abstract: a deriving class implements StyledElementActionImpl::execute.

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

    Returns a strong reference to this object.

    Source

    command_property

    fn command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
    

    Identifies the Command property.

    Source

    can_execute_command_property

    fn can_execute_command_property() -> &'static DirectProperty<InvokeCommandActionBase, bool>
    

    Identifies the CanExecuteCommand property.

    Source

    can_execute_command_parameter_property

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

    Identifies the CanExecuteCommandParameter property.

    Source

    use_command_can_execute_for_is_enabled_property

    fn use_command_can_execute_for_is_enabled_property() -> &'static StyledProperty<bool>
    

    Identifies the UseCommandCanExecuteForIsEnabled property.

    Source

    command_parameter_property

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

    Identifies the CommandParameter property.

    Source

    input_converter_property

    fn input_converter_property() -> &'static StyledProperty<Option<Rc<dyn IValueConverter>>>
    

    Identifies the InputConverter property.

    Source

    input_converter_parameter_property

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

    Identifies the InputConverterParameter property.

    Source

    input_converter_language_property

    fn input_converter_language_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the InputConverterLanguage property. The empty string of the default value means the invariant culture.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    command

    fn command(self: &Self) -> Option<Rc<dyn ICommand>>
    

    Gets or sets the command this action should invoke.

    Source

    set_command

    fn set_command(self: &Self, value: Option<Rc<dyn ICommand>>)
    

    Source

    can_execute_command

    fn can_execute_command(self: &Self) -> bool
    

    Gets a value indicating whether command can execute with the current can-execute parameter.

    Source

    can_execute_command_parameter

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

    Gets or sets the parameter that is passed to the can_execute of the command. When it is not set, command_parameter is used if it is set. It does not change the parameter passed to the execute of the command.

    Source

    set_can_execute_command_parameter

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

    Source

    use_command_can_execute_for_is_enabled

    fn use_command_can_execute_for_is_enabled(self: &Self) -> bool
    

    Gets or sets a value indicating whether the control associated with the hosting trigger should have its IsEnabled property follow can_execute_command.

    Source

    set_use_command_can_execute_for_is_enabled

    fn set_use_command_can_execute_for_is_enabled(self: &Self, value: bool)
    

    Source

    command_parameter

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

    Gets or sets the parameter that is passed to the execute of the command. If this is not set, the parameter given to the action is used.

    Source

    set_command_parameter

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

    Source

    input_converter

    fn input_converter(self: &Self) -> Option<Rc<dyn IValueConverter>>
    

    Gets or sets the converter that is run on the parameter given to the action.

    Source

    set_input_converter

    fn set_input_converter(self: &Self, value: Option<Rc<dyn IValueConverter>>)
    

    Source

    input_converter_parameter

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

    Gets or sets the parameter that is passed to the convert of the input_converter.

    Source

    set_input_converter_parameter

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

    Source

    input_converter_language

    fn input_converter_language(self: &Self) -> Option<String>
    

    Gets or sets the language that is passed to the convert of the input_converter.

    Source

    set_input_converter_language

    fn set_input_converter_language(self: &Self, value: Option<String>)
    

    Source

    pass_event_args_to_command

    fn pass_event_args_to_command(self: &Self) -> bool
    

    Specifies whether the event args of the event that triggered this action should be passed to the command as a parameter.

    Source

    set_pass_event_args_to_command

    fn set_pass_event_args_to_command(self: &Self, value: bool)
    

    Source

    resolve_parameter

    fn resolve_parameter(self: &Self, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
    

    Resolves the command parameter that will be passed to the command: the command_parameter if it is set, else the parameter given to the action converted by the input_converter, else the parameter itself if pass_event_args_to_command.

    Source

    Trait implementations

    Availability

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