Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148503 | Oct 22,2019 10:47 PM UTC | Oct 25,2019 06:28 AM UTC | WPF | 5 |
![]() |
Tags: SfDiagram |
private void MainWindow_ItemAdded(object sender, ItemAddedEventArgs args)
{
if(args.Item is CustomNode)
{
CustomNode node = args.Item as CustomNode;
node.Content = node.CustomContent;
node.ContentTemplate = App.Current.MainWindow.Resources[node.CustomContentTemplate] as DataTemplate;
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.