wpf - Best way to do a boolean-or-to-visibility -


i have control want visible if atleast 1 of series of properties return true. implement own booleanortovisibilitymulticonverter, feels there must better (and obvious) way this.

please enlighten me!

the mvvm way of doing return single boolean model contains logic works out whether control should visible or not.

normally if have kind of logic, it's because there's domain concept i'm trying express - instance:

  • it's in country
  • it's ready process
  • it still needs work
  • it complete outfit
  • all authors attributed

etc.

by keeping logic leads domain concept out of gui, make easier test , maintain. otherwise you'll end replicating same logic everywhere use domain concept, , it's not easy in xaml.


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

c++ - Update and multiple console windows -