AdaptativeGrid x:Bind to a method in the ItemTemplate fails. #4826
Unanswered
mcNets
asked this question in
Questions & Help
Replies: 1 comment
-
Hey mcNets, I don't have a direct answer for why this works in a Items Repeater vs the AdaptiveGridView. I'm guessing that it's a difference in binding at compile time between the two controls. I don't know if it's best practice to have a method in the user control to generate a value based on the 2 dps. I would create a calculated property in your DataModel and bind to that. Sorry if this doesn't help you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a new user control with 2 DP , let say Maximum and Minimum and one method SubtractionString() which returns the difference between maximum and minimum as a formatted as string.
If I use this control as a DataTemplate of one ItemsRepeater control, is shows the value of SubtractionString, but if I use the same DataTemplate in a AdaptativeGrid, this values is always 0.
I've added a minimum reproducible example.
TestAdaptativeGrid.zip
Beta Was this translation helpful? Give feedback.
All reactions