Hi
I am not able to see tooltip style for xamDiagram similar to the one available for XamDataChart Series. Can you please suggest best way to customize tooltip for xamDiagram's node?
I would like to have a callout style tooltip with multiple values from binding object of the node.
Thanks.
Hello Abs,
Thank you for contacting Infragistics. You can restyle the Tooltip property on the DiagramNode.
For example, if you want to show another property related as the tooltip value when the mouse is hovered you can acquire the underlying data object by using the Content Property and set the Path accordingly.
eg.
<Style TargetType="{x:Type ig:DiagramNode}" x:Key="EmpNode" BasedOn="{StaticResource {x:Type ig:DiagramNode}}"> <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Content.EmpType}"></Setter> </Style>
Let me know if you have any questions regarding this matter.
Thank you for your response on how to set bind tooltip to property of node's object. However, my query was re-restyling it, is it possible define "tooltipstyle" to show like a call out tooltip?
Thank you for following up. You can add a nested style for Tooltip as a resource for DiagramNode and go as far as changing the entire template.
<Style TargetType="{x:Type ig:DiagramNode}" x:Key="EmpNode" BasedOn="{StaticResource {x:Type ig:DiagramNode}}"> <Style.Resources> <Style TargetType="ToolTip"> <Setter Property="Background" Value="Red"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ToolTip"> <Grid> <Ellipse Fill="{TemplateBinding Background}"/> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Style.Resources> </Style>
Correct. ItemToolTipLayer is restricted to our charting components only. Let me know if you have any questions regarding this matter.
Thanks Michael, I have managed to create a nested style for tooltip as suggested and serving the purpose however I assume it does not support ItemToolTipLayer which is supported by XamDataChart.Series