HI,
I want to add the RadDiagramShape dynamically to RadDiagram control but wants to change the ContentTemplete.
But the content editor not show RadRichTextBox, It show normal Content Property as String.
So How to add dynamically ContentTemplete of RadDiagramShape
Thanks
Sopan Vaidya
I want to add the RadDiagramShape dynamically to RadDiagram control but wants to change the ContentTemplete.
<telerik:RadDiagram x:Name="myDiagram"> </telerik:RadDiagram
private void btnAddNewShape_Click(object sender, System.Windows.RoutedEventArgs e)
{
DataTemplate templete = new DataTemplate(typeof(RadRichTextBox));
this.myDiagram.AddShape(new RadDiagramShape() { });
}
But the content editor not show RadRichTextBox, It show normal Content Property as String.
So How to add dynamically ContentTemplete of RadDiagramShape
Thanks
Sopan Vaidya