We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to move label

Thread ID:





100302 Jul 23,2011 07:54 PM UTC Jul 26,2011 06:46 AM UTC WPF 1
Tags: Diagram
Asked On July 23, 2011 07:54 PM UTC


When I drag & drop elipse into diagram control, and double click on it, I see a label.


but how can I move it down?

Ramya Thirugnanam [Syncfusion]
Replied On July 26, 2011 06:46 AM UTC

Hi Wojciech,

With regards to move the label, Label of the Node can be aligned within the Node using LabelHorizontalAlignment and LabelVerticalAlignment. We have provided the code snippet for align the Label for the Drag and Drop Symbol, please refer to the Code Snippet.

Code Snippet:
//Register the Events
diagramView.NodeDrop += new NodeDroppedEventHandler(diagramView_NodeDrop);

//Node Drop event for Customizing the Label Position
void diagramView_NodeDrop(object sender, NodeDroppedRoutedEventArgs evtArgs)
Node n = evtArgs.DroppedNode as Node;
n.LabelHorizontalAlignment = HorizontalAlignment.Center;
n.LabelVerticalAlignment = VerticalAlignment.Bottom;

For more details about option to customize the Label of Node, please refer to the Online Help Documentation.

Link: http://help.syncfusion.com/ug_92/User%20Interface/WPF/Diagram/index.htm and Navigate to the Concepts and Features->Nodes->Node Label

Please let us know if you have any further queries and we will be happy to help you out.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon