Hi,
I have an issue with Axis ToolTip in xamWebChart. My requirement is to have some predefined width for Axis Label and if the text width is more than the defined width, then the text should be truncated with an ellipse and the entire text should be appearing in the ToolTip. Since by default there is no option to configure the Axislabel, I have created custom style and applied it to the Axis Label but then here, i am not getting the entire Text String in the Text property which i have binded as follows.
XAML Style :
<
Style x:Key="AxisLabelStyle" TargetType="igWebChart:Label">
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="igWebChart:Label" >
igWebChart:XamWebChart.Axes>
<igWebChart:Axis AxisType="PrimaryX">
Please guide me like what i am missing or any other alternative for achieving the same.
Hi Stefan,
I have already tried setting the width of the textblock, but even then i am unable to show the entire text in the Tooltip.
<Style x:Key="AxisLabelStyle" TargetType="igWebChart:Label"> <Setter Property="Template" > <Setter.Value> <ControlTemplate TargetType="igWebChart:Label" > <TextBlock Text="{TemplateBinding Text}" ToolTipService.ToolTip="{TemplateBinding Text}" Width="30" RenderTransformOrigin=".6,.5" FontSize="8" TextTrimming="WordEllipsis" > <TextBlock.RenderTransform> <TransformGroup> <RotateTransform Angle="60" ></RotateTransform> </TransformGroup> </TextBlock.RenderTransform> </TextBlock> </ControlTemplate> </Setter.Value> </Setter> </Style>
Hello,
Thank you for your post. I have been looking through it and I created a sample project for you using your code. I just set the Width of the TextBlock, so that the Text exceeds it and everything works as you want. Please let me know if this meets all your requirements or you need further assistance on this matter.
Looking forward fort your reply.