You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use IReflectableType to bind to "dynamic" properties. I read about them here: #5225 #8119
In particular, I'm trying to implement a binding to the "dynamic" properties of DataGrid items. And I came across this behavior: when an element type inherits from IReflectableType, the search for a property to bind is performed only among "dynamic" properties.
I have datagrid with 3 columns. Frist and second columns bound to "regular" properties, Third column bound to "dynamic" property.
When item type not inherited from IReflectableType, only "regular" properties are displaying.
When item type inherited from IReflectableType, only "dynamic" properties are displaying.
It doesn't seem to be strictly related to DataGrid, might be a common behavior for any Binding in Avalonia.
This behavior should be compared with other XAML frameworks. But meanwhile, I hope, it should be easy to workaround by passing non-dynamic properties through IReflectableType as well.
Referring to the original issue about ICustomTypeDescriptor support (#5225), I will assume that IReflectableType should work similarly to ICustomTypeDescriptor in WPF.
Describe the bug
Hello!
I'm trying to use IReflectableType to bind to "dynamic" properties. I read about them here:
#5225
#8119
In particular, I'm trying to implement a binding to the "dynamic" properties of DataGrid items. And I came across this behavior: when an element type inherits from IReflectableType, the search for a property to bind is performed only among "dynamic" properties.
I have datagrid with 3 columns. Frist and second columns bound to "regular" properties, Third column bound to "dynamic" property.
To Reproduce
https://github.com/BreakByBrick/Avalonia.Issue/tree/main/DataGrid.DynamicPropertyBinding
Expected behavior
I think that when an element type inherits from IReflectableType, it should use both "regular" and "dynamic" properties.
Avalonia version
11.0.10
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: