On Right Click of the Cluster I would like to get the List of all the Children inside that ClusterItem , SO that I can Display the List in the Context Menu .
Below is my cluster Code. Could anyone please help me in this
<telerik:InformationLayer x:Name="InformationLayer" ClusteredDataSource="{StaticResource ClusteredDataSource}"></telerik:InformationLayer>
<DataTemplate x:Key="ClusterTemplate" x:Name="DataTemplate">
<Grid x:Name="ParentRoot" Width="40" Height="40" telerik:MapLayer.Location="{Binding Path=Center}" telerik:MapLayer.HotSpot="0.5,1"
MouseRightButtonUp="MapMouseRightButtonUp" Tag="{Binding Path=Data}" >
<Path Data="" Stretch="Fill" Margin="0,0,-0.574,0" StrokeThickness="0.2">
<Path.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Green" Offset="0"/>
<GradientStop Color="Green" Offset="1"/>
<GradientStop Color="Green" Offset="0.523"/>
</LinearGradientBrush>
</Path.Fill>
</Path>
<!-- Title -->
<StackPanel x:Name="Text" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock FontSize="13" FontWeight="Bold"
Foreground="White"
Text="{Binding Path=Count}"/>
</StackPanel>
</Grid>
</DataTemplate>
<local:MassiveDataSource x:Key="MassiveDataSource" />
<local:Test x:Key="Test"/>
<telerik:ClusteredDataSource x:Key="ClusteredDataSource"
ItemsSource="{StaticResource MassiveDataSource}" ItemTemplate="{StaticResource ClusteredItemTemplate}"
ClusterItemTemplate="{StaticResource ClusterTemplate}"
GenerateClustersOnZoom="True">
</telerik:ClusteredDataSource>
Below is my cluster Code. Could anyone please help me in this
<telerik:InformationLayer x:Name="InformationLayer" ClusteredDataSource="{StaticResource ClusteredDataSource}"></telerik:InformationLayer>
<DataTemplate x:Key="ClusterTemplate" x:Name="DataTemplate">
<Grid x:Name="ParentRoot" Width="40" Height="40" telerik:MapLayer.Location="{Binding Path=Center}" telerik:MapLayer.HotSpot="0.5,1"
MouseRightButtonUp="MapMouseRightButtonUp" Tag="{Binding Path=Data}" >
<Path Data="" Stretch="Fill" Margin="0,0,-0.574,0" StrokeThickness="0.2">
<Path.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Green" Offset="0"/>
<GradientStop Color="Green" Offset="1"/>
<GradientStop Color="Green" Offset="0.523"/>
</LinearGradientBrush>
</Path.Fill>
</Path>
<!-- Title -->
<StackPanel x:Name="Text" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock FontSize="13" FontWeight="Bold"
Foreground="White"
Text="{Binding Path=Count}"/>
</StackPanel>
</Grid>
</DataTemplate>
<local:MassiveDataSource x:Key="MassiveDataSource" />
<local:Test x:Key="Test"/>
<telerik:ClusteredDataSource x:Key="ClusteredDataSource"
ItemsSource="{StaticResource MassiveDataSource}" ItemTemplate="{StaticResource ClusteredItemTemplate}"
ClusterItemTemplate="{StaticResource ClusterTemplate}"
GenerateClustersOnZoom="True">
</telerik:ClusteredDataSource>