It is necessary at the touch of a button to display another element in a state of collapse
. I use binding
to a Boolean variable in the ViewModel
and a converter, but suddenly I thought that this is an unnecessary entity, and you can certainly use it through xaml and triggers, but I can’t dig an example. Tell me.
PS I explain, implementation purely through xaml without jerking of converters and code ViewModel
interests. Is it possible to cope purely by View
?
Button
orToggleButton
? - Dmitry ChistikToggleButton
has anIsChecked
state that can be used inBinding
- Dmitry Chistik