# How to set the map controls in VS2013 \\ silverlight5 adaptive screen size?

**URL:** <https://community.thinkgeo.com/t/how-to-set-the-map-controls-in-vs2013-silverlight5-adaptive-screen-size/7029>\
**Category:** Silverlight\
**Created:** [November 30, 2013, 7:00pm UTC](https://community.thinkgeo.com/t/how-to-set-the-map-controls-in-vs2013-silverlight5-adaptive-screen-size/7029 "2013-11-30T19:00:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guofeng](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@guofeng](https://community.thinkgeo.com/u/guofeng)\
**Post date:** [November 30, 2013, 7:00pm UTC](https://community.thinkgeo.com/t/how-to-set-the-map-controls-in-vs2013-silverlight5-adaptive-screen-size/7029/1 "2013-11-30T19:00:35Z")

</div>

How&nbsp;to&nbsp;set&nbsp;the&nbsp;map&nbsp;controls&nbsp;in&nbsp;VS2013&nbsp;&#160;silverlight5&nbsp;adaptive&nbsp;screen&nbsp;size?  
  
I&nbsp;give&nbsp;fixed&nbsp;size&nbsp;can&nbsp;be&nbsp;in&nbsp;the&nbsp;test,&nbsp;but&nbsp;after&nbsp;setting&nbsp;Auto&nbsp;HelloWorld&nbsp;program&nbsp;error

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [December 3, 2013, 7:24pm UTC](https://community.thinkgeo.com/t/how-to-set-the-map-controls-in-vs2013-silverlight5-adaptive-screen-size/7029/2 "2013-12-03T19:24:28Z")

</div>

Hi&nbsp;Guo,  
  
  
  
I&nbsp;guess&nbsp;we&nbsp;can&nbsp;do&nbsp;it&nbsp;with&nbsp;the&nbsp;help&nbsp;of&nbsp;an&nbsp;event&nbsp;called&nbsp;"App.Current.Host.Content.Resized&nbsp;"&nbsp;to&nbsp;auto&nbsp;adapt&nbsp;the&nbsp;content&nbsp;size&nbsp;changed.&nbsp;Here&nbsp;is&nbsp;the&nbsp;test&nbsp;project&nbsp;and&nbsp;hope&nbsp;it&nbsp;helps.  
  
  
  
Regards,  
  
Johnny  
  
[Post11683.zip](https://community.thinkgeo.com/uploads/default/original/2X/6/65748b9af1acaafdb64978eb954057fc9a457722.zip) (30 KB)
