This is a migrated thread and some comments may be shown as answers.

Tooltip of diagram

1 Answer 95 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yostec
Top achievements
Rank 1
Yostec asked on 17 Aug 2012, 01:09 AM
Is  there   tooltip  of  diagram???

When the mouse on the "Shape" ,    prompting.      Can  diagram  do  it???      

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 17 Aug 2012, 06:00 AM
Hello Yostec,

 There is no "out of the box" way tooltip on the RadDiagramShape. However, you can use MouseOver and MouseLeave events like so:

private ToolTip shapestoolTip;
        public MainPage()
        {
            InitializeComponent();     
        }
        private void RadDiagramShape_MouseEnter(object sender, MouseEventArgs e)
        {
            shapestoolTip = new ToolTip();
            shapestoolTip.Content = "CustomTooltip";
            shapestoolTip.IsOpen = true;
        }
        private void RadDiagramShape_MouseLeave(object sender, MouseEventArgs e)
        {
            if (shapestoolTip != null && shapestoolTip.IsOpen == true)
            {
                shapestoolTip.IsOpen = false;
            }
        }
Furthermore. you can take a look at our MindMap and OrgChart Samples where custom MouseOver state is added to the MindMapShapes and OrgChartShapes (they inherit from RadDiagramShapeBase). On mouse over you can see some template parts are showing. Hope this might be helpful in some custom scenarios.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Yostec
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or