I have started to experiment with ASP.NET 2.0 and web parts. I have created a webpart that includes a standard ASP Calendar control. This control is added through code inside the webpart. I am now trying to apply a theme to this calendar that is inside my webpart.
This is what I have done:
1. On the webpart I have exposed the Calendar as a property with the name FromCalendar.
2. I have added the following to the .skin file
<%@ Register Assembly="IMK.WebParts" Namespace="IMK.WebParts" TagPrefix="IMK" %>
<IMK:IMKDateWebPart runat="server">
<FromCalendar BackColor="#FFFFCC">
<SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
<TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" ForeColor="#FFFFCC" />
</FromCalendar>
</IMK:IMKDateWebPart>
I can apply a theme to a Calendar Control that is added to the page outside a webpart, but not inside it.
Any suggestions?