Hello,
I'd like to restrict the size of my POI'S Datatemplate to be only shown in an explicit area so it won't get any bigger than this area.
Maybe a LocationRect would be given and my DataTemplate automatically expands and fills this Rect.
Can you tell me if there is a way to achieve anything similar to my requirements?
See a simplified version of my DataTemplate below:
<DataTemplatex:Key="ResizableTemplate"> <Gridx:Name="ParentRoot" Background="Transparent" telerik:MapLayer.Location="{Binding Path=Location}"> <StackPanelOrientation="Vertical"> <TextBlockText="{Binding Path=Title}"/> <TextBlockText="{Binding Path=Description}"/> </StackPanel> </Grid></DataTemplate> VisualizationLayer:
<telerik:VisualizationLayerx:Name="POILayer"ItemsSource="{Binding POICollection}"ItemTemplate="{StaticResource ResizableTemplate}"/>