or
Text
="{Binding DataContext.Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadTabItem}}"
this
.radtabVariableControlsContainer.ItemsSource =
Enumerable.Range(0, 10).Select(x => new UserControl() { Name = "name" + x });
<Grid> <Grid.Resources> <DataTemplate x:Key="ContentAreaTabHeaderTemplate"> <TextBlock Text="{Binding DataContext.Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadTabItem}}" FontFamily="Arial" FontSize="13.333" /> </DataTemplate> </Grid.Resources> <telerik:RadTabControl x:Name="radtabVariableControlsContainer" BorderBrush="{x:Null}" SelectedItemRemoveBehaviour="SelectPrevious" ItemTemplate="{StaticResource ContentAreaTabHeaderTemplate}" DropDownDisplayMode="Visible" ItemDropDownContentTemplate="{StaticResource ContentAreaTabHeaderTemplate}"/> </Grid><charting:ChartArea.Annotations> <charting:CustomGridLine YIntercept="{Binding Path=TargetThickness}" Visibility="Visible" Stroke="Red" StrokeThickness=" </charting:ChartArea.Annotations> The problem is that it's not displaying the value contained in the TargetThickness property. Is the syntax not correct?
public static RadDocument ImportFromString(string content){ var provider = new DocxFormatProvider(); var stream = new MemoryStream(); var sw = new StreamWriter(stream); sw.Write(content); return provider.Import(stream);}