Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Restrict POI's DataTemplate area

$
0
0

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}"/>

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>