This question is locked. New answers and comments are not allowed.
Hi,
Some of the telerik silverlight components which contains content feature such as radexpander works strange if I try to apply a new style.
The scenario is that, I try to add a new button in a radexpander header template. In order to activate this button and new style I need to call InitializeComponent method in constructor. However, if I do this, I can listen button events that I added, and there is no compile time
error. Then at run time my button seems null. I guess there are two instances of the button.
There may be a constructor problem, which type of the following should be used in this case;
What should I do when I m trying to extend a telerik component without loosing my components ?
Thanks,
Serif
Some of the telerik silverlight components which contains content feature such as radexpander works strange if I try to apply a new style.
The scenario is that, I try to add a new button in a radexpander header template. In order to activate this button and new style I need to call InitializeComponent method in constructor. However, if I do this, I can listen button events that I added, and there is no compile time
error. Then at run time my button seems null. I guess there are two instances of the button.
There may be a constructor problem, which type of the following should be used in this case;
public partial class MyComponent : SomeRadComponent{ public MyComponent() : base() { //does not show new style }}ORpublic partial class MyComponent : SomeRadComponent{ public MyComponent() : base() { InitializeComponent(); //cannot read component at run time }} ORpublic partial class MyComponent : SomeRadComponent{ public MyComponent() { InitializeComponent(); //cannot read component at run time }}What should I do when I m trying to extend a telerik component without loosing my components ?
Thanks,
Serif