You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only seem to be able to use the '==' operator for comparing an enum.
Is it possible to use other operators such as '>='?
I tried this:
Visibility="{c:Binding 'CurrentUser.Level>=local:UserLevel.Administrator'}"
And got this error:
Binding error: calc converter can't convert expression{0}>=Enum1.Administrator: The binary operator GreaterThanOrEqual is not defined for the types 'MyNameSpace.UserLevel' and 'MyNameSpace.UserLevel'.
Using the equals operator is working though.
The text was updated successfully, but these errors were encountered:
I only seem to be able to use the '==' operator for comparing an enum.
Is it possible to use other operators such as '>='?
I tried this:
Visibility="{c:Binding 'CurrentUser.Level>=local:UserLevel.Administrator'}"
And got this error:
Binding error: calc converter can't convert expression{0}>=Enum1.Administrator: The binary operator GreaterThanOrEqual is not defined for the types 'MyNameSpace.UserLevel' and 'MyNameSpace.UserLevel'.
Using the equals operator is working though.
The text was updated successfully, but these errors were encountered: