VisualizationLayer ClusterItemTemplate change by count

2 posts, 0 answers
  1. CW
    CW avatar
    1 posts
    Member since:
    Mar 2015

    Posted 29 Jun 2015 Link to this post

    I just added Visualization layer with ClusteringEnabled="True"  so my requirement is  cluster ellipse style need to change according to count.

    how can  i achieve this.

  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 01 Jul 2015 Link to this post

    Hello CW,

    Please check the approach in our Clustering Help Artcile. You can use the ClusterItemTemplate property of the VisualizationLayer and add Ellipse in a DataTemplate. You can bind the Background / Fill of the Ellipse or other element in the Template to the Count property of the underlying ClusterData object. Converter will help you to set different background / fill depending on the Count. 

    <DataTemplate x:Key="ClusterTemplate">
        <Border Background="#af3f3f3f"
            <Ellipse Fill={Binding Count, Converter ={StaticResource />

    Petar Mladenov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top