Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
When dragging a node beyond the left boundary of the window, the X coordinate is negative even when we retrieve the previous position of the node, but this only happens, apparently, if we drag the node relatively slowly.
Video 1 reproduces this behavior. In video 2, I do the same thing, but dragging the node faster and the X coordinate becomes positive again by moving the node inside the window again.
Code:
private void Button_Click(object sender, RoutedEventArgs e)
{
NodeViewModel nodo = new NodeViewModel()
{
ID = "HOLA",
UnitWidth = 120,
UnitHeight = 40,
OffsetX = 300,
OffsetY = 60,
//Specify shape to the Node from built-in Shape Dictionary
Shape = App.Current.Resources["Ellipse"],
//Apply style to Shape
ShapeStyle = App.Current.Resources["ShapeStyle"] as Style
};
(this.diagrama.Nodes as NodeCollection).Add(nodo);
}
}
In XAML, the diagram control does not have any explicitly set properties.
I'm sorry, but I don't see the possibility of uploading more than an attachment.
Thanks in advance.
Regards.