TypeInitilizationException when initalizing a Subclass with a Dependency Property
I have the following simple TextBox subclass, which adds one dependency property (OutputIndex): public class OutputTextBox : TextBox { public OutputTextBox() : base() { } public int OutputIndex { get { return (int)this.GetValue(OutputIndexProperty); } set { this.SetValue(OutputIndexProperty, value); } } ...