ComponentOne Scheduler for ASP.NET: Working with Scheduler for ASP.NET AJAX > Visual Styles > Changing the Visual Style

Changing the Visual Style

You can change the theme of a C1Schedule using the C1Schedule Tasks menu, the Properties window, in Source view, and in Code. The following example sets the Visual Style property to Vista:

In the Tasks Menu

Complete the following steps:

1.   Click the C1Schedule smart tag to open the C1Schedule Tasks menu.

2.   Click the drop-down arrow next to the Visual style item and select one of the built-in visual styles, for example Vista.

In the Properties Window

Complete the following steps:

1.   Click once on the C1Schedule control to select it.

2.   Navigate to the Properties window and locate the VisualStyle property.

3.   Click the drop-down arrow next to the VisualStyle property and select one of the built-in visual styles, for example Vista.

In Source View

Switch to Source view and add VisualStyle="Vista" to the <cc1:C1Schedule> tag so that it appears similar to the following:

<cc1:C1Schedule ID="C1Schedule1" runat="server" UseEmbeddedVisualStyles="True" VisualStyle="Vista">

Notice that when you set the VisualStyle property, the UseEmbeddedVisualStyles property is set to True.

In Code

Add the following code to the Page_Load event to set the schedule's VisualStyle to Vista:

      Visual Basic

C1Schedule1.VisualStyle = "Vista"

      C#

C1Schedule1.VisualStyle = "Vista";


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.