Hi, I have shapes in a ListBox on a different window(other than having diagram control) and from there i drag them on diagram, is it possible to assign tooltip to the shape existing in ListBox because shape does not have any tooltip property. Code is given below
Shape customShape = new Shape(new[]{ new LineTemplate(0, 0, 0, 100), new LineTemplate(0, 100, 100, 100), new LineTemplate(100, 100, 100, 0), new LineTemplate(100, 0, 0, 0) }, 0, "ABC");
customShape.Image = new BitmapImage(new Uri(@"abc.png")); customShape.Id = "ABC Image"; //-----tooltip not available----// customShape.tootip= "ABC Image";
//--comment// toolbar is System.Windows.Controls.LisBox toolbar.ItemsSource = new[] { customShape};
|