다음을 통해 공유


Make Calendar control bigger or smaller in Silverlight 2, how?

As is known, Calendar is fixed-size control in Silverlight 2, since the sizes of the header buttons and day buttons within Calendar are pre-defined in the Calendar template. However, web developers may want a bigger or smaller Calendar on their web pages, making them well balanced in terms of layout and structure so that they are more appealing to the audience.

The question is: how to have make the size of the calendar control adjustable? The answer is simple! Just put IT in a viewbox! (Viewbox can be downloaded from the Silverlight Toolkit).

 

You can see that the calendar control still keeps its functionalities. It can be switched between month, year and decade mode, just like before!

Comments

  • Anonymous
    June 28, 2010
    The comment has been removed