I was wondering how do you decide when to use converters
and when to use triggers
.
I prefer using a triggers for operations on GUI (like showing/hiding controls, changing their appearance etc.).
Some time ago I used a BooleanToVisibilityConverter
for this purpose but now, I just don't need it, I do all things connected to the visibility
using a triggers and I even started to think "what was the purpose of creating a BooleanToVisibilityConverter
by the MS team?". Generally, when it's possible I try to use a declarative way to write the code - in this example - XAML.
What is your opinion of that?
See Question&Answers more detail:os