I have been searching for such an explaination for a while and I couldn't have found any yet. The thing is that I would like to know the steps of initialization/creation process of a Wpf Control.
Lets take a simple Button and I would like to know what is happening when constructor gets called, when is the control added to visualTree/logicalTree, when does invocation of dependencyproperty values happen, when is ApplyTemplate() called?
I need this information to be able to write proper custom control and I think it will help others too in case they wonder why this.Template.FindName("test") always returns "null" when being called inside a constructor of a control.
Can anyone answer this or provide me with links of tutorials where the concept of initizaling a control is poperly explained?
Thanks :)
Per this SO answer here
Also, I personally found the DispatcherPriority Enum useful in determining the event order in some cases