I have looked and looked, but nothing works.
Say I have something like this:
namespace A{
partial class B : Window {
//some definitions
}
class E {
public enum en {a, b, c}
}
}
and then in the XAML:
<Window x:Class="A.B"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:A">
<Window.Resources>
<ObjectDataProvider MethodName="GetValues"
ObjectType="{x:Type sys:Enum}"
x:Key="vals">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="en" /> <<<this line
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</Window.Resources>
..rest of XAML ...
</window>
Now the marked line gives me the error:
Type 'en' was not found.
it is the same if I change it to
local:en
E+en
local:E+en
How do I solve this problem? Thanks very much