I am creating a custom WPF control as an automatic learning exercise. My control has a ListView inside the template. I want my managing user to be able to define the necessary columns in their own Xaml, but I did not get a strategy on how to pass the columns to the internal list, because the binding to FindAncestor complains that the "Columns" are not DependencyProperty. Wake, questions:
- How to achieve property binding from xaml to a template when it is not DP
- Correct my design: I think something is wrong: if someone completely changes my template, how can I let him use the Column collection?
source
share