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

Avalonia.Xaml.Interactions.Core.ChangePropertyAction Bug #7686

Closed
nielsbosma opened this issue Feb 23, 2022 · 1 comment
Closed

Avalonia.Xaml.Interactions.Core.ChangePropertyAction Bug #7686

nielsbosma opened this issue Feb 23, 2022 · 1 comment
Assignees
Labels

Comments

@nielsbosma
Copy link
Contributor

Describe the bug

<ChangePropertyAction TargetObject="{Binding #Foo}" PropertyName="Grid.Row" Value="1" />

^ This only works if TargetObject is a Grid. But more than often you want to use the attached Grid. properties on other control types.

I think the problem lies here:

image

If Foo is a Panel then propertyNames[0]="Grid" and targetType.Name="Panel".

Desktop (please complete the following information):

  • Windows
  • Avalonia 0.10.12
@wieslawsoltes
Copy link
Contributor

Should be fixed in 0.10.16, not much more I can do with this action as it uses string for property name, if it still does not work please use ChangeAvaloniaPropertyAction

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

No branches or pull requests

2 participants