Click here to Skip to main content
15,886,873 members
Articles / Desktop Programming / WPF

A Multi-Select Control for Flags Enums in WPF

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
18 Jan 2021CPOL6 min read 7.2K   194   9  
A customizable way to set enum flags
The FlagsEnumButton is an extension of the Button control that presents the values of a Flags Enum as a list of checkable options in a dropdown menu. The Enum values can overlap, where selecting one value simultaneously selects other values. The items in the dropdown are autogenerated and the text on the button can be customized to show the selected flags in multiple ways.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Retired
United States United States
I fell in love with software development in 1973 and have been reveling in it ever since. My experience over the years has had me coding in over 20 programming languages and included stints in embedded systems, SCM, SQA, and software test. I've been in the DoD world, NASA support, quasi-military commercial, enterprise publishing, and even timeshare systems. Through it all, my favorite language remains C#. I love my job! (And retirement is quite nice, too!)

Comments and Discussions