Create a NewsRotator control 

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

This tutorial guides you through the steps required to create a control. As an example, you will create a NewsRotator control. You use the control to present the most recent news items and their cover pictures as a slideshow. The tutorial focuses on the following:

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

After completing your control, if you don't want to use the built-in property editor, you can create a control designer. The control designer allows you to define a custom UI that is used to configure the control.

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

You can also check out the Before you begin section below.

System requirements

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

  • .NET Framework 4.0
  • Visual Studio
  • Sitefinity SDK

Prerequisites

In order to create and use your control, you must 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.

Related topics:

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