none
Binding Location at the Pushpin object RRS feed

  • Question

  • Hi,

    After WP development Metro Bing Map control looks so pinched. I wasn't be able to develop basic things:

    1. Bind location of pushpin from XAML. In case of MVVM and Silverlight it is quite weird to give ability to set position only from code.

    <Pushpin bm:MapLayer.Position={Binding Location} /> //doesn't work

    2. Create collection on Pushpins (WP analogue MapItemsControl) in XAML to bind it to my collection in ViewModel

    3. Set Custom Pushpin template. Actually I was able to create custom pushpin via c# code but it always has fixed size of small square. Height/Width of template and Pushpin objects wouldn't help me.

    I will be glad if someone could explain me how to complete this basic thing.

    p.s. I check almost every bind map samples. There is no binding at all as if everyone create static pushpins with fixed coordinates.

    Thanks,

    Alexey.

    Friday, June 22, 2012 10:38 PM

Answers

All replies