Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic simple text label as XAML entity? (Read 1411 times)
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
simple text label as XAML entity?
Nov 23rd, 2012 at 10:53am
Print Post  
in XAML, we can add nodes to Diagram.Nodes, we can add Buttons which appear as DiagramNodeAdapters, but what is the way to add a simple text that shows the activity of some area etc.

i added such a canvas element before the nodes, it shows nice in designer view of the XAML, but it is not shown in the diagram in runtime. I can access it under its name (ModeText) and change its .Text property too, so i assume it is somehow overlapped by the canvas of the diagram itself in Z-depth?

Code
Select All
        <Canvas>
            <TextBlock  Name="ModeText" Canvas.Left="80" Canvas.Top="280"
                           Foreground="Plum" FontSize="42" Text="Browsing.." Width="180">
            </TextBlock>
        </Canvas> 



One could place it in grid simply below the diagram area, but now the question is nagging me from the technical side - how do you place labels within a diagram that can be moved around etc programmatically - labels that are not bound to links or nodes?

thx in advance, cheers
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: simple text label as XAML entity?
Reply #1 - Nov 23rd, 2012 at 1:34pm
Print Post  
Quote:
we can add Buttons which appear as DiagramNodeAdapters


You could add TextBlocks the same way to display text, or better use ShapeNodes with Transparent property set to true to hide everything but their Text.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint