Could you provide more information please? What platform and which version numbers (platform and GoXam)? Is what is seen in the control that which is clipped? Or is it the image in the bitmap? Does the bitmap have the correct contents?
That’s very odd – I’ve never heard or seen that kind of error in WPF.
When you say that it happens “when the saving is skipped”, do you mean when not calling MakeBitmap?
What other code executes when this problem occurs?
After the clipping appears, do mouse actions in the “invisible” area still work as if the rest were visible?
After the clipping happens, what are the ways of restoring the proper appearance?
scale just output a bigger picture to my understanding.
when i select a bigger width (eg width= width* 2;) i can partially solve the problem , a smaller part of the diagram is clipped but if i resize the panel that contains the diagram i still see this problem .
so to my understanding this only moves the "line of clipping" , i hope i am clear enough.
so to your question : setting scale to 1.0 is worse for me.
i think the clipping is relative to the left edge. if the diagram is closer to the left edge its container you get a smaller part clipped or not at all.
it is like the makeBitmap draws a rectangle starting from the left edge with some given dimension and clips everything that is not contained in that given rectangle. so when i increase the width and scale the clipping doesn't effect my diagram, i am prety sure it is still there, just cant be seen against the white background.
is there any way to refresh the diagram? make it rerender itself, without doing another loading to its model??
As a work-around, try calling MakeBitmap with an Action argument (the optional argument that comes last) that does:
myDiagram.Panel.MakeBitmap(. . .,
bmp => {
var pos = myDiagram.Panel.Position;
myDiagram.Panel.Position = new Point(pos.X, pos.Y+1);
myDiagram.Panel.Position = pos;
});
This is crude but I hope it helps in this situation.