---
title: "How to set Silverlight contents width as 100%?"  
description: "How to set Silverlight contents width as 100%?"  
author: "Chris Anderson"  
published: 2011-08-10  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/1127/how-to-set-silverlight-contents-width-as-100  
category: "silverlight"  
tags: ["silverlight"]  
reading_time: 1 minute  

---

# How to set Silverlight contents width as 100%?

Generally you can't set the UserControl width in % like 100% so that the Silverlight contents can spread in the full screen. \
To get the 100% width of the screen you can set width="auto" and height="auto".

## Answers

### Answer by Chris Anderson

Generally you can't set the UserControl width in % like 100% so that the Silverlight contents can spread in the full screen. \
To get the 100% width of the screen you can set width="auto" and height="auto".


---

Original Source: https://www.mindstick.com/interview/1127/how-to-set-silverlight-contents-width-as-100

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
