Hello,
I am using version 7.2.20072.1007 of the WPF controls.
My question is how can I make the legend items wrap when the width of the text exceeds the width of the legend? I am using the chart 3D styles you guys ship. I tried modifying the data template, specifically adding TextWrapping="WrapWithOverflow" to the TextBlock but it still does not wrap. Any ideas?
Thanks
<DataTemplate DataType="{x:Type igCA:LegendItemTemplate}">
<Grid Background="{x:Null}" Margin="0,0,0,0" Width="Auto" Height="Auto">
<Grid Width="Auto">
<Ellipse
Fill="{Binding Path=Fill}"
Width="12"
Height="12"
StrokeThickness="1"
/>
</Grid>
<TextBlock Text="{Binding Path=Text}" FontFamily="Tahoma"
FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Left" Background="{x:Null}" Margin="3,0,0,0" TextWrapping="Wrap"/>
</StackPanel>-->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Left" Background="{x:Null}" Margin="3,0,0,0" TextWrapping="WrapWithOverflow"/>
</DataTemplate>
strange, i thought i answered this on wednesday. this is just an issue with the grid panel ... if you set an explicit width on that second column, your text wrapping should take effect.
<ColumnDefinition Width="50"/>
thank you