积极答复者
What's the triger of OnApplyTemplate

问题
-
答案
-
Thanks for reply. But the answer is that the style must sit in the specific Themes/Generic.xaml. I want to kill MS, why, must be the specific forder and file name!!
Check th following urls :
http://stackoverflow.com/questions/1228875/what-is-so-special-about-generic-xaml
http://blogs.msdn.com/b/jaimer/archive/2008/04/08/built-in-styling-and-generic-xaml.aspx
Hope helps
全部回复
-
I use a self-defined control, but the OnApplyTemplate can not be called. I have compare carefully with the demo code, which can call the OnApplyTemplate, can not find anything.
So I wonder what's trigger of OnApplyTemplate, how to control this function called or not called?
-
Thanks for reply. But the answer is that the style must sit in the specific Themes/Generic.xaml. I want to kill MS, why, must be the specific forder and file name!!
Check th following urls :
http://stackoverflow.com/questions/1228875/what-is-so-special-about-generic-xaml
http://blogs.msdn.com/b/jaimer/archive/2008/04/08/built-in-styling-and-generic-xaml.aspx
Hope helps