<UserControl.Resources> <!-- Style for EventPoint object --> <Style x:Key="rscEventPointStyle" TargetType="ig:EventPoint"> <Setter Property="Width" Value="12" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ig:EventPoint"> <Grid> <!-- Uses a rectangle to mark points --> <Rectangle Fill="{TemplateBinding Fill}" Stroke="{TemplateBinding Stroke}" StrokeThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Width}" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <!-- Style for Legend object --> <Style x:Key="rscLegendStyle" TargetType="ig:Legend"> <Setter Property="BorderBrush" Value="Black"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="IsTabStop" Value="/> <Setter Property="TitleStyle"> <Setter.Value> <Style TargetType="ig:Title"> <Setter Property="Margin" Value="0,5,0,10"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="HorizontalAlignment" Value="Center"/> </Style> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ig:Legend"> <Border Background="BlanchedAlmond" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Padding="2" Margin="10,10,10,0" Height="200" Width="150"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <ig:Title Grid.Row="0" Content="{TemplateBinding Title}" Style="{TemplateBinding TitleStyle}"/> <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" BorderThickness="0" Padding="0" IsTabStop="> <StackPanel Grid.Column="1" x:Name="LegendItemsArea" Margin="10,0,10,10" /> </ScrollViewer> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> <!-- Style for LegendItem objects --> <Style x:Key="rscLegendItemSpanStyle" TargetType="ig:LegendItem"> <Setter Property="IsTabStop" Value="/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ig:LegendItem"> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <!-- Displays legend item as a Border to represent span event --> <Border Width="22" Height="10" CornerRadius="5" Background="{TemplateBinding Fill}" BorderBrush="{TemplateBinding Stroke}" BorderThickness="1" Margin="6,4,6,6" > </Border> <ig:Title Content="{TemplateBinding Content}" /> </StackPanel> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="rscLegendItemRectStyle" TargetType="ig:LegendItem"> <Setter Property="IsTabStop" Value="/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ig:LegendItem"> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <!-- Displays legend item as a rectangle --> <Rectangle Width="12" Height="12" Margin="12,2,12,6" Fill="{TemplateBinding Fill}" Stroke="{TemplateBinding Stroke}" StrokeThickness="1.5" /> <ig:Title Content="{TemplateBinding Content}" /> </StackPanel> </ControlTemplate> </Setter.Value> </Setter> </Style> </UserControl.Resources>