SIGN UP MEMBER LOGIN:    
ARTICLE

Change Date Picker Image in Silverlight 3

Posted by Diptimaya Patra Articles | Silverlight with C# November 11, 2009
In this article we will see how can we change the default image associated with DateTimePicker Control in Silverlight3.
Reader Level:
Download Files:
 

Introduction

In this article we will see how can we change the default image associated with DateTimePicker Control in Silverlight3.

Creating Silverlight Project

Fire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as DatePickerTest.

1.gif

Now open the solution in Blend 3.

Add a DateTimePicker Control to the application.

Edit the Template of DateTimePicker as follows:

2.gif

Now you will find the following controls in your object and Timeline pane.

3.gif

We need to change the Button, so do edit the template.

4.gif
 
Now you will find a new set of objects in the Panel as follows:

5.gif
 
We will delete all the elements from the second Grid and add an Image control to it. Resize the Grid and Image as required and you will find something similar to the following.

6.gif
 
That's it. Run your application and your new image for your DateTimiePicker control is added.

7.gif

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Become a Sponsor