Hi,
I seem to have come across an issue with setting the StartPoint and EndPoint properties of a RadDiagramConnection. The connection is not redrawn. Only when I move one of the end does it redraw properly.
It only happens when a StartPoint AND EndPoint is specified (ie not attached to any other shapes via the Source and Target properties).
So I cant programmatically move the connector at the moment which is an issue. Can you help me please?
Here's a quick sample:
XAML:
I seem to have come across an issue with setting the StartPoint and EndPoint properties of a RadDiagramConnection. The connection is not redrawn. Only when I move one of the end does it redraw properly.
It only happens when a StartPoint AND EndPoint is specified (ie not attached to any other shapes via the Source and Target properties).
So I cant programmatically move the connector at the moment which is an issue. Can you help me please?
Here's a quick sample:
XAML:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<telerik:RadDiagram x:Name="_diagram" Grid.Row="0">
<telerik:RadDiagramConnection x:Name="_connector"
StrokeThickness="2"
StartPoint="100,100"
EndPoint="200,200" />
</telerik:RadDiagram>
<Button x:Name="_do"
Grid.Row="1"
Content="Move" Click="_do_Click" /></Grid>
Code behind:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void _do_Click(object sender, RoutedEventArgs e)
{
_connector.EndPoint = new Point(300, 300);
}
}