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:
<
DataTemplate
x:Key
=
"ResizableTemplate"
>
<
Grid
x:Name
=
"ParentRoot"
Background
=
"Transparent"
telerik:MapLayer.Location
=
"{Binding Path=Location}"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
TextBlock
Text
=
"{Binding Path=Title}"
/>
<
TextBlock
Text
=
"{Binding Path=Description}"
/>
</
StackPanel
>
</
Grid
>
</
DataTemplate
>
VisualizationLayer:
<
telerik:VisualizationLayer
x:Name
=
"POILayer"
ItemsSource
=
"{Binding POICollection}"
ItemTemplate
=
"{StaticResource ResizableTemplate}"
/>