Welcome to MSDN Blogs Sign in | Join | Help

A Silverlight 2 Ad Rotator

I’ve been learning how to build Silverlight 2 Custom Controls and wanted to share my first one.  Since I work with a number of creative agencies, I thought that an Ad Rotator would be relevant; this one can rotate ads that are images, video, or XAML.

I’ve also worked hard to make it easy for designers to use.  To do this, I’ve created a design-time graphic that shows up only in Expression Blend and added Category and Description attributes to the control properties.

If you want to use the AdRotator in a Silverlight application, here’s what you do:

  1. Download the source code from the MSDN Code Gallery.
  2. In Expression Blend or Visual Studio add a reference to the AdRotatorLibrary\Bin\Release\AdRotatorLibrary.dll
  3. From the Assets panel Custom Controls Tab in Expression Blend, drag a AdRotator onto your page
  4. Create an Advertisement XML file using the ASP.net Ad rotator format.
  5. Select the AdRotator control and pick the Format and Source in the Ad Properties

Tell me what you think.

Design-Time graphic
Design-time view

Ad Category and Format Description
Ad Category Attribute and Format Description Attribute

Published Wednesday, February 04, 2009 3:44 PM by Michael S. Scherotter
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# A Silverlight 2 Ad Rotator » Click & Solve

Wednesday, February 04, 2009 7:05 PM by A Silverlight 2 Ad Rotator » Click & Solve

# Synergist : A Silverlight 2 Ad Rotator

Thank you for submitting this cool story - Trackback from DotNetShoutout

Thursday, February 05, 2009 10:19 AM by DotNetShoutout

# Silverlight Cream for February 05, 2009 -- #508

In this issue: Ken Cox, Shawn Oster, Andy Beaulieu, Dean Chalk, Matthias Shapiro, Nikola, Arturo Toledo

Thursday, February 05, 2009 5:29 PM by Community Blogs

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker