RadDiagram/RadDiagramItem.Size in fractional pixels

0 Answers 25 Views
Diagram
Burl
Top achievements
Rank 1
Burl asked on 26 Jan 2023, 03:55 PM

Our application uses Telerik.Windows.Controls.RadDiagram to arrange RadDiagramItem instances on the screen.  Our view model uses a higher resolution than 96x96.  When I set RadDiagramItem.Width, for example, to 94.464, I can see in the debugger the framework accepts that value.  However, when I execute the undo operation, I see RadDiagramItem.OnSizeChanged(Size newSize, Size oldSize) called, with oldSize = {94, ... }.  This results in a rounding error in our view model.

Is there any way to put RadDiagram into a fractional pixel mode?

Burl
Top achievements
Rank 1
commented on 27 Jan 2023, 08:42 PM

I found the culprit of the rounding error in our code.  Please disregard this post.

No answers yet. Maybe you can help?

Tags
Diagram
Asked by
Burl
Top achievements
Rank 1
Share this question
or