Hello,
I have a RadDiagram in which I load 400 items with almost 50 binding properties per-item, like for example BackgroundColor, FontSize, Width, Height, Visibility, etc…
Example of BackgroundColor property for binding:
private Brush backgroundColor ;
public Brush BackgroundColor
{
get{ return backgroundColor; }
set
{
backgroundColor = value;
OnPropertyChanged(“BackgroundColor”);
}
}
Each item is a derived class from MyNode:NodeViewModelBase with DataTemplate:
<telerik:RadDiagram.ShapeStyle>
<Style TargetType="telerik:RadDiagramShape">
<Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />
<Setter Property="Background" Value="{Binding BackgroundColor} " />
<Setter Property="BorderBrush" Value="Transparent" />
……………
The performance is very bad. It last up to 5 seconds to display the whole diagram with all items over it.
Any help to enhance the performance?
I have a RadDiagram in which I load 400 items with almost 50 binding properties per-item, like for example BackgroundColor, FontSize, Width, Height, Visibility, etc…
Example of BackgroundColor property for binding:
private Brush backgroundColor ;
public Brush BackgroundColor
{
get{ return backgroundColor; }
set
{
backgroundColor = value;
OnPropertyChanged(“BackgroundColor”);
}
}
Each item is a derived class from MyNode:NodeViewModelBase with DataTemplate:
<telerik:RadDiagram.ShapeStyle>
<Style TargetType="telerik:RadDiagramShape">
<Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />
<Setter Property="Background" Value="{Binding BackgroundColor} " />
<Setter Property="BorderBrush" Value="Transparent" />
……………
The performance is very bad. It last up to 5 seconds to display the whole diagram with all items over it.
Any help to enhance the performance?