R
Rolf Welskes
Hello,
as example I have a simple customerCtrl
class MyCtrl : WebControl
{
//one own color-property
public Color MyBkColor
{
......
}
here rendering to see the bkcolor
}
Now if I set the property MyBkColor I also see in the VSDesigner that the
conntrol has this back-color.
If I now put the control in a skin-file and make the control 3 times in a
page without MyBkColor set
and
set in the page the StyleSheetTheme = .... the theme where the
custom-control theme is,
the following happens:
If I start the page, all 3 controls have the back-color, so I see that the
themes work for the control
If I now open the page in the designer the themes do not work, no back-color
from the themes in the control
If I for example take a TextBox and do the same all works fine also in
designer.
So, the designer of VS does not recognize the themes of the own control
This is very bad because every own custom control is useless if themes does
not work in the designer.
So is there anything to do (to write code in the control) so that this
works?
Thank you for any help.
Rolf Welskes
as example I have a simple customerCtrl
class MyCtrl : WebControl
{
//one own color-property
public Color MyBkColor
{
......
}
here rendering to see the bkcolor
}
Now if I set the property MyBkColor I also see in the VSDesigner that the
conntrol has this back-color.
If I now put the control in a skin-file and make the control 3 times in a
page without MyBkColor set
and
set in the page the StyleSheetTheme = .... the theme where the
custom-control theme is,
the following happens:
If I start the page, all 3 controls have the back-color, so I see that the
themes work for the control
If I now open the page in the designer the themes do not work, no back-color
from the themes in the control
If I for example take a TextBox and do the same all works fine also in
designer.
So, the designer of VS does not recognize the themes of the own control
This is very bad because every own custom control is useless if themes does
not work in the designer.
So is there anything to do (to write code in the control) so that this
works?
Thank you for any help.
Rolf Welskes