开发者

Custom Template in PushPin

开发者 https://www.devze.com 2023-02-18 14:48 出处:网络
Howdy, I want to generate several location of pushpins on a seperate layer over a map. Those PushPins shall represent places at this very coordinate. Thus they should show some additional information

Howdy, I want to generate several location of pushpins on a seperate layer over a map. Those PushPins shall represent places at this very coordinate. Thus they should show some additional information which should be visible once the user taps/touches the Pushpin.

This whole solution is solely code based ( adding of the pushpins ).

I already here on sa that I should put an invisible button behind the pushpins - but I'm not quite sure how I should do that.

It would be great if somebody has a hint which'll bring me forward!

Thanks

    <DataTemplate x:Key="PushpinControlTemplate2">
    <Grid x:Name="ContentGrid">
        <StackPanel Orientation="Vertical">

            <Grid Background="{TemplateBinding Background}"
                                        HorizontalA开发者_开发百科lignment="Left"
                                        MinHeight="10"
                                        MinWidth="29">
                <Hyperlinkbutton HorizontalAlignment="Center" Content="{binding}" Click="clicker" Margin="0"/>
            </Grid>

            <Polygon Fill="{TemplateBinding Background}"
                                 Points="0,0 29,0 0,29"
                                 Width="29"                             
                                 Height="29"
                                 HorizontalAlignment="Left"/>
        </StackPanel>
    </Grid>
</DataTemplate>

This is my code which I use so far, the function clicker is defined, however I always the error 'AG_E_PARSER_BAD_PROPERTY_VALUE [Line: 5 Position: 98]'


This Pushpin-Styles in Bing Maps for the Windows Phone post should tell you everything you need to know about styling pushpins.

0

精彩评论

暂无评论...
验证码 换一张
取 消