Set map's width to * RRS feed

  • Question

  • Hi,

    i had to create a bing map using code (no xaml!) but when i compiled the project first, i saw that the map was auto-setted to have a small width (and height, of course). I wanted the map to occupy all the space, so I tried to fix the problem with:

    map.Width = (double)GridUnitType.Star;

    map.Height = (double)GridUnitType.Star;

    But nothing. useful appened (same thing if i try with double.NaN

    What can i do?

    Sunday, December 23, 2012 1:19 AM


  • If you want the map to scale to fill up space put it inside of a Grid and do not set a width or height.

    Tuesday, December 25, 2012 9:56 AM