ComponentOne Scheduler for WPF and Silverlight
Silverlight Quick Start / Step 2 of 4: Setting the Data View
In This Topic
    Step 2 of 4: Setting the Data View
    In This Topic

    In this step you will select use one of the predefined data views.

    1. In the Visual Studio Project menu, select Add Reference.
    2. Browse to find the C1.Silverlight.dll and C1.Silverlight.Schedule.dll. These .dlls are installed by default in the C:\Program Files\ComponentOne\Silverlight Edition folder; however, they may appear elsewhere depending on where you installed the product. Click OK once you've selected these .dlls.
    3. Double-click the MainPage.xaml file in the Visual Studio Solution Explorer.
    4. Add the Scheduler control from the toolbox to the MainPage.xaml.
    5. Add XAML markup so the MainPage.xaml XAML looks like the following:
      XAML
      Copy Code
      <UserControl
          xmlns:c1="clr-namespace:C1.Silverlight.Schedule;assembly=C1.Silverlight.Schedule"
          x:Class="SchedulerQuickStart.MainPage"
          xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
          xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
          xmlns:c1="clr-namespace:C1.Silverlight;assembly=C1.Silverlight"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006
          mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
         
          <Grid x:Name="LayoutRoot">
              <c1:C1Scheduler x:Name="sched1" Style="{Binding OneDayStyle, RelativeSource={RelativeSource Self}}"/>
          </Grid>
      </UserControl>
      

    When you run the project, it will show a schedule in Day View. In the next step, you will add navigation buttons.