Quantcast
Channel: Editors for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 942

Re: EnumEditBox - Omit Values

$
0
0

Hello, One thing that I did not expect was that the ommitted value type is still shown when the combination of flags that represent it is selected as the value:

    [Flags]
    public enum EnumDst2
    {
        [EditorBrowsable(EditorBrowsableState.Never)]
        None = 0,
        One = 1,
        Two = 2,

        [EditorBrowsable(EditorBrowsableState.Never)]
        All = 3
    }

 Gives (ascii diagram because i cant find add picture button):

+-----------------+
| All         | v | 
+-----------------+
| [/] One         |
| [/] Two         |
+-----------------+

I would have expected it as if it was not defined, i.e.

+-----------------+
| One, Two    | v |
+-----------------+
| [/] One         |
| [/] Two         |
+-----------------+

Viewing all articles
Browse latest Browse all 942

Trending Articles