Replies: 3 comments 2 replies
-
Height is of type GridLength, you can't bind to properties of other types.. I think it is not a good idea to bind and change it. Use Gridlength.Auto and configure the hight of the contained view. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
@King-Taz The Height of RowDefinition is of type so you have to define your properties the same way public GridLength RowHeight0{get; set;}
public GridLength RowHeight1{get; set;} while assigning values you can try something like
|
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
-
Beginner here, looking for databinding examples for RowDefinition and ColumnDefinition. The Maui docs say these are of type Collection and are a List of objects. While I can accomplish this task using callbacks and code behind, I like using MVVM (thanks CommunityToolkit!) and want to learn more and can bind to int, strings, etc. I have no idea how to bind to grid objects though. The simple binding
obviously didn't work for variables typed as double, string, etc. Any links or advice appreciated!
Beta Was this translation helpful? Give feedback.
All reactions