Replies: 1 comment
-
You would set this in your controller, for example IsExpanded = false. Then on get you could check (field is != null) ? true : false. So isExpanded in XAML, would be true/false based on your field value. Just make sure when you update your "field" value, you must call OnPropertyChanging(nameof(IsExpanded)) and OnPropertyChanged(nameof(IsExpanded)). So when "field" value will change also the Bindable IsExpanded in XAML will be notified that has changed and expander UI will update. |
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.
-
After reading the docs, I am still wondering just a bit on a question: is it possible to only expand the content of the expander if there is some property set that allows that? For instance, if I have an object that may or may not have some field, I want to only expand the details of that object if it contains that field (i.e. the field is != null).
Appreciate any thoughts anyone might have.
Beta Was this translation helpful? Give feedback.
All reactions