This is a migrated thread and some comments may be shown as answers.

Tiny Spot Visible on Upper Left of Empty RadDiagram

2 Answers 30 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 10 May 2013, 05:06 PM
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
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;
}


2 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 15 May 2013, 02:56 PM
Hello Alan,

We can confirm that this behavior of the RadDiagram framework was a bug. However, it is already fixed and the fix is available in our latest internal build. Can you please download it from your account and give it a try.

Let us know if you need any further assistance.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alan
Top achievements
Rank 1
answered on 15 May 2013, 09:11 PM
Yes, it is fixed now.
Tags
Diagram
Asked by
Alan
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Alan
Top achievements
Rank 1
Share this question
or