Create a Book widget 

Sitefinity comes with a set of built-in controls, which can be directly used in the pages you create. You can also create your own custom controls and use them side by side with the default ones.

This tutorial guides you through the steps required to create a custom control that uses Silverlight for its UI and that can be customized via its property editor. As an example, you will create a Book control. You use the control to present the images from a selected album. You must also make the control customizable by exposing properties for the album, the first page position, the type of the hard pages, etc. The tutorial focuses on the following:

NOTE: This tutorial outlines only the main concepts of creating a customizable Silverlight based control. You can find the full code sample for the Book control inside the samples project, which is shipped together with Sitefinity SDK.

For more information about the controls, see Working with controls.

System requirements

Before you begin creating your control, you must have the following installed:

  • .NET Framework 4.0
  • Visual Studio
  • Sitefinity SDK
  • Silverlight 4 SDK

Prerequisites

To create and use your control, you need to have an up and running Sitefinity project. For more information about installing Sitefinity and creating and starting a project, see Installation and Administration Guide.

NOTE: The code provided in this documentation is written in C#. You can convert the code to VB using the Telerik Code Converter.

Next steps

+1-888-365-2779
sales@sitefinity.com
Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK