With the following resource definition
<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="AccountTypeValues">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="domain:Account+AccountType" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
the designer complains that the “Type” Account + Account Type “not found”. However, a nested type exists, and the code matches and works without problems. Because the designer believes that XAML is incorrect, it does not display a graphical representation of XAML.
What do I need to do to get the designer to recognize Account + AccountType as valid? I would really like the visual part of the designer to work.
Thanks Ben
source
share