Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:04:28+00:00 2026-06-15T05:04:28+00:00

I am trying to design a template to be used with Bing Maps. I

  • 0

I am trying to design a template to be used with Bing Maps. I have started with the base template and torn a few bits out and added a few more bits, but I am making a bit of a mess of it!

What I am trying to acheive is a pushpin that has what appears to be a tooltip coming out of each side into which I can insert more information (though these are not actually tooltips; they are displayed permanantly based upon a binding property). Something like…

What I have so far

As you can see, I am not much of an artist and have not really gotten very far!

Can somebody help? What I would like is for the orange bars on each side of the pin to be able to contain text based upon a binding (and the bars should grow if required); whilst also being able to hide one or both bars depending on a binding (IsLeftTextVisible/IsRightTextVisible for example, the names do not matter I can change those later) or even if the bound field contains no text.

I would also really like for the orange bars to be a bit nicer; but if somebody can help me get to the point where I can display the text I (hopefully) should be able to take it from there.

Here is the code to produce what I have…

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF">

  <ControlTemplate x:Key="PushpinTemplate" 
    TargetType="{x:Type m:Pushpin}">

    <Grid Grid.Name="LayoutRoot"
      FrameworkElement.Height="{TemplateBinding FrameworkElement.Height}"
      FrameworkElement.Width="{TemplateBinding FrameworkElement.Width}">

      <Canvas FrameworkElement.Height="35"
        FrameworkElement.HorizontalAlignment="Left"
        FrameworkElement.VerticalAlignment="Top"
        FrameworkElement.Width="34">

        <Path x:Name="CollectionTextPath"
          Fill="{TemplateBinding Background}"
          Data="M 0,20 H100 V-20 H-0"
          Canvas.Left="20"
          Stretch="Fill"
          Width="100"
          Height="18.905"
          Canvas.Top="3.19"
          RenderTransformOrigin="0.5,0.5" >

          <Path.RenderTransform>
            <TransformGroup>
              <ScaleTransform ScaleX="1"/>
              <SkewTransform/>
              <RotateTransform/>
              <TranslateTransform/>
            </TransformGroup>
          </Path.RenderTransform>

        </Path>

        <Path x:Name="DeliveryTextPath"
          Fill="{TemplateBinding Background}"
          Data="M 0,20 H100 V-20 H-0"
          Canvas.Left="-81"
          Stretch="Fill"
          Width="100"
          Height="18.905"
          Canvas.Top="4.19"
          RenderTransformOrigin="0.5,0.5" >

          <Path.RenderTransform>
            <TransformGroup>
              <ScaleTransform ScaleX="-1"/>
              <SkewTransform/>
              <RotateTransform/>
              <TranslateTransform/>
            </TransformGroup>
          </Path.RenderTransform>

        </Path>

        <Path x:Name="Path_0"
          Stretch="Fill"
          StrokeLineJoin="Round"
          Stroke="#FF333333"
          Fill="#FFFFFFFF"
          Data="F1M13.25,0.50001502C20.2917,0.50001502 26,6.2083602 26,13.25 26,17.817347 23.598524,21.823648 19.989363,24.075348 18.67861,25.105957 17.863953,27.531982 17.863953,27.531982L13.21736,39.595642 8.6221838,27.528591C8.6221838,27.528591 7.8198605,25.084908 6.6245556,24.145586 2.952121,21.907652 0.5,17.865215 0.5,13.25 0.5,6.2083602 6.2083402,0.50001502 13.25,0.50001502z"
          UseLayoutRounding="False"
          Height="39.694"
          Width="26"
          Canvas.Left="8.282"
          Canvas.Top="0.001" />

        <Ellipse Height="21"
          Width="21"
          Fill="{TemplateBinding Background}"
          Canvas.Top="2.434"
          HorizontalAlignment="Center"
          VerticalAlignment="Center"
          Canvas.Left="10.806"
          Stroke="{x:Null}" />

        <Ellipse Height="18.905"
          Width="18.905"
          Canvas.Top="3.19"
          Canvas.Left="11.911"
          Stroke="{x:Null}">

          <Ellipse.Fill>
            <LinearGradientBrush EndPoint="0.5,1"
              StartPoint="0.5,0">
              <GradientStop Color="#00FFFFFF"
                Offset="0.438" />
              <GradientStop Color="#6EFFFFFF"
                Offset="0.987" />
            </LinearGradientBrush>
          </Ellipse.Fill>

        </Ellipse>

        <UIElement.RenderTransform>
          <TransformGroup>
            <TranslateTransform TranslateTransform.X="-4" />
          </TransformGroup>
        </UIElement.RenderTransform>

      </Canvas>

      <Grid FrameworkElement.HorizontalAlignment="Center"
        FrameworkElement.VerticalAlignment="Top"
        FrameworkElement.Margin="0,2,0,0"
        FrameworkElement.Height="22"
        FrameworkElement.Width="21">

        <ContentPresenter ContentPresenter.Content="{TemplateBinding ContentControl.Content}"
          FrameworkElement.HorizontalAlignment="Center"
          FrameworkElement.VerticalAlignment="Center" />

      </Grid>

    </Grid>

  </ControlTemplate>

  <Style x:Key="{x:Type m:Pushpin}"
    TargetType="{x:Type m:Pushpin}">
    <Setter Property="Template"
      Value="{StaticResource PushpinTemplate}" />
  </Style>

</ResourceDictionary>

As you might gather, the canvas, grids and ellipses (the bits that look nice) are from the original template. I have then added the two Paths but I am now at a loss as to how to put text inside them (I could probably bind the text without problem if I had somewhere to put it).

I know this is a bit of an ask; but is there somebody who is a bit graphical and could move me forward a bit please. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:04:30+00:00Added an answer on June 15, 2026 at 5:04 am

    I have extended the layout sufficiently.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this template design that is currently absolutely positioned, but I'm trying
Im trying to over ride /app/design/frontend/base/default/template/paypal/partner/logo.phtml in my custom template called MyTemplate do I
I'm trying to sketch out a database template on some design paper, and I'm
I'm trying to design my app's interface in IB using a storyboard and have
I have trying to design a REST service in .NET 3.5 with WCF REST
I'm trying to modyfiy magento's product page layout ( app/design/frontend/default/*template*/template/catalog/product/view.phtml ) but i'm not
I'm just starting out in MVC world, and I've used a standard MVC template
While trying to apply policy-based design, I got stuck on this one (simplified): template
I am trying to use template design pattern so I use abstract class to
I have the following template that I am trying to get working, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.