Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can you help me with this problem?

want to set a reference to a Template in a groupbox I'm creating in the code behind.In a example I found, they mostly use SetResourceReference method. However, I see that this method doesn't seem to exist on the new Groupbox property in creating.
XAML:
HTML
<ControlTemplate TargetType="GroupBox" x:Key="GBTemplate">

Code Behind:
C#
groupbox gb_plat
gb_plat= create GroupBox
gb_plat.SetResourceReference(Groupbox.TemplateProperty,"GBTemplate")

This method have come out with 2 errors, 1.Undefined variable: "TemplateProperty" 2. Can not find element "SetResourceReference"

I am using Powerbuilder.net

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900