Skip to content

XAML Behaviors Issue?Β #4551

@292390450

Description

@292390450

Describe the problem

<b:Interaction.Triggers> <b:PropertyChangedTrigger Binding="{Binding ElementName=MutilSelect,Path=IsChecked}" > <b:CallMethodAction MethodName="MutilSelected" TargetObject="{Binding RelativeSource={RelativeSource AncestorType=local:SearchComboBox}}"/> </b:PropertyChangedTrigger> </b:Interaction.Triggers>
PropertyChangedTrigger does not work together with CallMethodAction because CallMethodAction restricts that the second parameter must be inherited from the class EventArgs, and the property change provides parameters that are System.Windows.DependencyPropertyChangedEventArgs

Describe the solution

Parameters must not be inherited from EventArgs when validating, or you can specify the type of the parameter

Alternatives

I can only go to the monitor checked, unchecked two methods to achieve this goal

Additional info

No response

Help us help you

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions