Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Simple question on my Silverlight Application. How can I expand the Map to full extent of browser no matter the size of the browser?

-Thanks for any help.

share|improve this question
add comment

2 Answers 2

use:

<i:Interaction.Behaviors>
    <behaviors:WheelZoom />         
    <behaviors:MaintainExtentBehavior />
</i:Interaction.Behaviors>

http://serverapps.esri.com/samples/MaintainExtentBehavior.cs.txt (MaintainExtentBehavior.cs)

http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/14/Using-Behaviors-to-enable-MouseWheel-in-Full-Screen-and-Out_2D00_of_2D00_browser.aspx#comments

share|improve this answer
add comment

First make sure your map control covers all of the page as you are designing.

Next in your web application when your silverlight object is declared make sure that the width and height attributes are both 100%.

With that set, you map should fill the entire browser area no matter how large or small the browser.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.