MindFusion.Scheduling for Silverlight Programmer's Guide
ResourceViewSettings.RowHeaderTemplate Property
See Also
 





Gets or sets the template of the row headers, or null (Nothing in Visual Basic), to use the default template. This is a dependency property.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public DataTemplate RowHeaderTemplate { get; set; }

Visual Basic  Copy Code

Public Property RowHeaderTemplate As DataTemplate

 Property Value

An instance of the Silverlight DataTemplate class.

 Remarks

The default value of this property is the following template:

XAML  Copy Code

<DataTemplate>
  <TextBlock Text="{Binding HeaderText}" />
</DataTemplate>

In addition to HeaderText, which contains the default text displayed in the row header, the properties of the template can also bind to Resource and Calendar, which reference the related Resource object and the Calendar control respectively.

 Example

The following example demonstrates a custom row header template which displays an image along with the header text. The image is specified through the Tag property of the resource.

XAML  Copy Code

<DataTemplate>
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Image Source="{Binding Resource.Tag}" MaxHeight="48" MaxWidth="48" Margin="2" />
    <TextBlock Text="{Binding HeaderText}" Grid.Column="1" VerticalAlignment="Center" />
  </Grid>
</DataTemplate>

 See Also

ResourceViewSettings Members
ResourceViewSettings Class
MindFusion.Scheduling.Silverlight Namespace