Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic diagramnode containing several textblocks (Read 2051 times)
joerg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 28th, 2010
diagramnode containing several textblocks
Nov 28th, 2010 at 6:54pm
Print Post  
Hello diagramlite users!

I tried to solve the following task:

I want to implement several diagramnodes containing several textblocks. Each one of the textblocks binds a mouseover event.
The approach was to present one or more people by name in one diagramnode. Each person is presented by a textblock. The textblocks itselves are generated dynamically.
When the user hovers over one textblock element detailed information of the current item should be displayed in a new overlayer container (similar to an infobox).
Are there any examples or code snippets that show this approach.

Thanks in advance
Joerg
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: diagramnode containing several textblocks
Reply #1 - Nov 29th, 2010 at 9:53am
Print Post  
Hi Joerg!

We made a small sample project that achieves that, by inheriting from ShapeNode and providing a new ControlTemplate.
The ControlTemplate uses an ItemsControl to display the bound data (with StackPanel for ItemsPanel and TextBlock DataTemplate for the items).
The infobox is shown in response to the raised MouseMove events.

You can download the sample from here:
https://mindfusion.eu/_samples/SampleJoerg.zip

I hope this helps,
Lyubo
  
Back to top
 
IP Logged
 
joerg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 28th, 2010
Re: diagramnode containing several textblocks
Reply #2 - Nov 29th, 2010 at 10:19am
Print Post  
Hi Lyubo!

Thank you for your fast answer and for the .zip files!
I'll try it out later on and post feedback!

Thanks again

Joerg
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint