I have a problem while Parsing a custom element with the XmlSerializer. My custom element looks like this (i removed all properties, it still does not work):
using System.Windows.Controls;
namespace MvvmControlChange.Content.Elements
{
public class Test_Element : TextBox
{
public Test_Element()
{ }
}
}
Now this line of my parser invokes a InvalidOperationException for Test_Element:
XmlSerializer serializer = new XmlSerializer(typeof(Test_Element));
The InnerExcetion tells me "There was an error reflecting property 'InputBindings'. Can someone help me?