or
public MainWindow() { InitializeComponent(); Telerik.Windows.Documents.Model.Section section = new Telerik.Windows.Documents.Model.Section(); Telerik.Windows.Documents.Model.Paragraph paragraph = new Telerik.Windows.Documents.Model.Paragraph(); Telerik.Windows.Documents.Model.Span span = new Telerik.Windows.Documents.Model.Span("span1. dfgfdgfd "); Telerik.Windows.Documents.Model.Span span2 = new Telerik.Windows.Documents.Model.Span("span2."); paragraph.Inlines.Add(span); paragraph.Inlines.Add(span2); section.Blocks.Add(paragraph); radRichTextBox1.Document.Sections.Add(section); }private void radRichTextBox1_MouseUp(object sender, MouseButtonEventArgs e) { textBox1.Text = radRichTextBox1.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text; }<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="{x:Static sim:ClassificationStatusColors.SuccessBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_2" Label="Hesitation" MarkerFill="{x:Static sim:ClassificationStatusColors.HesitationBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_3" Label="Unknown" MarkerFill="{x:Static sim:ClassificationStatusColors.UnknownBrush}" /> <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_4" Label="Misrecognition" MarkerFill="{x:Static sim:ClassificationStatusColors.MisrecognitionBrush}" /> </telerik:ChartLegend><telerik:RadChart Name="chartStrategyPerformanceMax"Background="Transparent"BorderThickness="0"IsTabStop="False"DataContext="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadFluidContentControl, Mode=FindAncestor}, Path=DataContext}"ItemsSource="{Binding StatusGroup}"PaletteBrushes="{Binding BrushPalette}"> <telerik:RadChart.SeriesMappings> <!-- snip --> </telerik:RadChart.SeriesMappings> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView ChartLegend="{StaticResource ClassificationLegend}"> <telerik:ChartDefaultView.ChartArea> <telerik:ChartArea LegendName="ClassificationLegend" SmartLabelsEnabled="True" /> </telerik:ChartDefaultView.ChartArea> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> </telerik:RadChart><telerik:RadChart ItemsSource="{Binding DocumentsClassificationScore}" PaletteBrushes="{x:Static sim:ClassificationStatusColors.ClassificationPalette}"> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView ChartLegend="{StaticResource ClassificationLegend}"> <telerik:ChartDefaultView.ChartArea> <telerik:ChartArea LegendName="ClassificationLegend"/> </telerik:ChartDefaultView.ChartArea> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> ...<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>