Silverlight Quick Start > Step 2 of 4: Setting the Data View |
In this step you will select use one of the predefined data views.
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.