I just noticed that even on a RadDiagram with no Shapes there appears to be very small black spot.
This is most visible when you set the Background of the RadDiagram to White and turn off the grid visibility.
You may need to zoom quite a way into the diagram to see this. If you do, it appears as a Black Circle.
Here is how I am creating my empty RadDiagram in code behind:
backgroundColor is Colors.White
isEditingEnabled is false
This is most visible when you set the Background of the RadDiagram to White and turn off the grid visibility.
You may need to zoom quite a way into the diagram to see this. If you do, it appears as a Black Circle.
Here is how I am creating my empty RadDiagram in code behind:
backgroundColor is Colors.White
isEditingEnabled is false
private
RadDiagram CreateDiagram(Color backgroundColor,
bool
isEditingEnabled)
{
var diagram =
new
RadDiagram
{
IsBackgroundSurfaceVisible =
false
,
Background =
new
SolidColorBrush(backgroundColor),
IsPanEnabled =
false
,
IsZoomEnabled =
false
,
AllowCopy =
false
,
AllowCut =
false
,
AllowDelete =
false
,
AllowDrop =
false
,
ActiveTool = MouseTool.PointerTool,
AllowPaste =
false
,
IsDraggingEnabled = isEditingEnabled,
IsResizingEnabled = isEditingEnabled,
IsRotationEnabled =
false
,
IsConnectorsManipulationEnabled = isEditingEnabled,
IsManipulationAdornerVisible = isEditingEnabled,
IsManipulationEnabled = isEditingEnabled,
SelectionMode = isEditingEnabled ? SelectionMode.Single : SelectionMode.None,
IsSnapToGridEnabled =
false
,
IsSnapToItemsEnabled =
false
,
};
diagram.Clear();
DiagramAnimations.SetIsZoomAnimationEnabled(diagram,
false
);
ScrollViewer.SetHorizontalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
ScrollViewer.SetVerticalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden);
return
diagram;
}