or
<telerik:ChartLegend x:Uid="ClassificationLegend" x:Key="ClassificationLegend" Name="ClassificationLegend" Visibility="Visible" Header="" Padding="0,0,5,0" HorizontalContentAlignment="Right" VerticalAlignment="Center" BorderThickness="0" Background="Transparent" UseAutoGeneratedItems="False"> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_1" Label="Success" MarkerFill="{StaticResource SuccessBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_2" Label="Hesitation" MarkerFill="{StaticResource HesitationBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_3" Label="Unknown" MarkerFill="{StaticResource UnknownBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_4" Label="Misrecognition" MarkerFill="{StaticResource MisrecognitionBrush}" /> </telerik:ChartLegend> <telerik:RadChart.PaletteBrushes> <SolidColorBrush x:Uid="SolidColorBrush_5" Color="{StaticResource SuccessColor}" /> <SolidColorBrush x:Uid="SolidColorBrush_6" Color="{StaticResource HesitationColor}" /> <SolidColorBrush x:Uid="SolidColorBrush_7" Color="{StaticResource UnknownColor}" /> <SolidColorBrush x:Uid="SolidColorBrush_8" Color="{StaticResource MisrecognitionColor}" /> </telerik:RadChart.PaletteBrushes>ItemLabelFormat="#%{p0}"
What can i do ?
- Cedric -
GridViewRowInfo gvi = this.radGridViewSource.SelectedRows[0];<BR> this.radGridViewSource.SelectedRows.Clear();<BR> this.radGridViewSource.SelectedRows.Add(gvi);<BR>taskBoardScheduleView.TimeRulerItemStyleSelector = new CustomTimeRulerItemStyleSelector();public class CustomTimeRulerItemStyleSelector : OrientedTimeRulerItemStyleSelector { public Style MinorTickLineStyle { get; set; } public Style MajorTickLineStyle { get; set; } public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDeifinition) { if (container is TimeRulerLine) { TickData tick = item as TickData; if (tick.Type == TickType.Minor || tick.Type == TickType.Major) { return Application.Current.FindResource("TransparentTickLineStyle") as Style; } return base.SelectStyle(item, container, activeViewDeifinition); } return base.SelectStyle(item, container, activeViewDeifinition); } }<Style x:Key="TransparentTickLineStyle" TargetType="{x:Type telerik:TimeRulerLine}"> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Background" Value="White"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik:TimeRulerLine}"> <Border x:Name="LineVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,1,0,0" Background="{TemplateBinding Background}"/> <ControlTemplate.Triggers> <Trigger Property="Orientation" Value="Horizontal"> <Setter Property="BorderThickness" TargetName="LineVisual" Value="1,0,0,0"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>