Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CallMethodAction with Custom Parameter #214

Open
michael-hawker opened this issue Mar 4, 2021 · 1 comment
Open

Support CallMethodAction with Custom Parameter #214

michael-hawker opened this issue Mar 4, 2021 · 1 comment

Comments

@michael-hawker
Copy link
Contributor

It'd be nice for CallMethodAction to support an additional property for MethodParameter in order to allow overwriting the incoming parameter from the parent behavior to something specified by the developer in XAML:

  <b:CallMethodAction TargetObject="{x:Bind ContextFlyout}" MethodName="ShowAt" MethodParameter="{x:Bind FooElement}"/>

This would provide a little bit more flexibility.

@pedrolamas
Copy link
Collaborator

I can see the usefulness in what you ask... quite honestly, the whole code on the XamlBehaviors are still legacy from a time where we only had legacy Bindings (instead of compiled ones) and had to resort a lot to reflection, but nowadays that is not the case anymore... makes me wonder if a deeper rethink of this whole thing should be done for WinUI 3 support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants