<UserControl x:Class="DiagramCustomPasteSL.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:local="clr-namespace:DiagramCustomPasteSL"    
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
        
        <local:CustomDiagramSL x:Name="diagram">
            <telerik:RadDiagramShape Position="180 200" x:Name="shapeA" Width="80" Height="80" IsSelected="True"/>
            <telerik:RadDiagramShape Position="500 200" x:Name="shapeB" Geometry="{telerik:CommonShape ShapeType=CloudShape}"/>

            <telerik:RadDiagramConnection StartPoint="280 200" EndPoint="450 200"/>
            <telerik:RadDiagramConnection StartPoint="280 240" EndPoint="450 240"/>
            <telerik:RadDiagramConnection StartPoint="280 280" EndPoint="450 280"/>
        </local:CustomDiagramSL>

        <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0 0 0 50">
            <TextBlock Text="Paste a Shape or Connection and it will be positioned under Mouse pointer." FontSize="18" FontWeight="bold" HorizontalAlignment="Center"/>
            <TextBlock Text="Paste a Connection when the Mouse is over a Shape Connector and this will attach the connection to the shape." FontSize="18" FontWeight="bold" HorizontalAlignment="Center"/>
        </StackPanel>
    </Grid>
</UserControl>
