P
Pietro
Hi,
I've created this control to hold name and template:
<Controle Id="ctrl" Nome="Header">
<Template>
Bla Bla .....
</Template>
</Controle>
But i want to set the Template property as default property:
<Controle Id="ctrl" Nome="Header">
Bla Bla .....
</Controle>
I used:
[DefaultProperty("Template"),ParseChildren(false)]
public class Controle
{
...
public ITemplate Template {...}
}
But it doesn't work, the property is not set, what is wrong?
Thanks.
Pietro
I've created this control to hold name and template:
<Controle Id="ctrl" Nome="Header">
<Template>
Bla Bla .....
</Template>
</Controle>
But i want to set the Template property as default property:
<Controle Id="ctrl" Nome="Header">
Bla Bla .....
</Controle>
I used:
[DefaultProperty("Template"),ParseChildren(false)]
public class Controle
{
...
public ITemplate Template {...}
}
But it doesn't work, the property is not set, what is wrong?
Thanks.
Pietro