my issue now, I can not apply template on my groupbox in code behind. I am try to use these 2 methods 1. gb1.SetResourceReference(templateProperty, "GBTemplate") 2. gb1.Template=Resources["GBTemplate"] as ControlTemplate;
but groupbox does not detect SetResourceReference and Template controls.
I also try another method by create external dll by using C# in visual studio but my problem is I do not know how to call my control template from PB.net.