Why would 'this.ContentTemplate.FindName' throw an InvalidOperationException on its own template?
Ok... this has me stumped. I've overridden OnContentTemplateChanged in my UserControl. I'm checking that the value passed in for newContentTemplate does in fact equal this.ContentTemplate (it does) yet when I call this... var textBox = this.ContentTemplate.FindName("EditTextBox", this); ...it throws the following exception... "This operation is valid only on elements that have this template applied." Per a commenter in another related question, he said you're supposed to pass in the content presenter for the control, not the control itself, so I then tried this... var cp = FindVisualChild