TimberStalker
WinUI: Creating a DataTemplate through Code doesent resolve all bindings.
I have a binding attachment that lets me add items to a MenuBarItem dynamically. It adds an ItemSource and ItemTemplate.
The Name and CommandParameter bindings both get set, but the command binding doesent run at all, presumably due to the ElementName. I even created a special print attachment property and if I had ElementName, it didnt print anything, but it did correctly print the other things.
This might be because i have to create the DataTemplates in the code behind that it doesent let things with relative bindings get set. This is what I do.
Is my problem the way I create the child contents, and if so what can I do to fix it.
1 replies