Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6565153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:03:30+00:00 2026-05-25T14:03:30+00:00

I am developing a Silverlight web app and am working now on a child

  • 0

I am developing a Silverlight web app and am working now on a child window which is separated in three columns. The left is for messages which will not be displayed always, and two (middle and right) which will be displayed always.

My question is: How can I make the right and middle column use up all the space if the left column doesnt need to show any data? So if for example my child window is 100 in width every of the three should be 33.333 or if the left one doesn’t need to be displayed then the other two are both 50. Is there any way without messing in code behind?

Edit: The child window looks like this

<controls:ChildWindow ...
   <Grid x:Name="LayoutRoot" Margin="2">
       <Grid.ColumnDefinitions>
           <ColumnDefinition Width="*" />
           <ColumnDefinition Width="*" />
           <ColumnDefinition Width="*" />
       </Grid.ColumnDefinitions>
       <Grid Name="msgGrid" Grid.Column = 0/>
       <Grid Grid.Column = 1/>
       <Grid Grid.Column = 2/>
</controls:ChildWindow>

I am passing a bool value (showMessageToUser) into the constructor of the child window and based on that it should be determined what to do

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:03:30+00:00Added an answer on May 25, 2026 at 2:03 pm

    Make the first column “Auto” size and the second two columns 1* (or just *) in width.

    The first column will collapse to its contents (which presumably you will show/hide) and the second two will take up 50% each as the * sizing is just a ratio.

    Put a name container (another grid?) in the first column and control its visible flag. The other 2 columns will take care of themselves.

    <controls:ChildWindow ...
       <Grid x:Name="LayoutRoot" Margin="2">
           <Grid.ColumnDefinitions>
               <ColumnDefinition Width="Auto" />
               <ColumnDefinition Width="*" />
               <ColumnDefinition Width="*" />
           </Grid.ColumnDefinitions>
           <Grid x:Name="msgGrid1" Grid.Column=0 Width="100"/>
           <Grid Grid.Column=1/>
           <Grid Grid.Column=2/>
    </controls:ChildWindow>
    

    Control the visibility of msGrid1 to get the effect you wanted. If you also want user control of the the width if column 0 (e.g. with a GridSplitter) you will need code-behind as the two features do not work together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web app using silverlight. I read that Microsoft offers 10
I am developing a Silverlight web app and got stuck on the current problem.
I am developing a Silverlight app using VS2008 Express. I have just implemented a
I'm developing a Silverlight 3 Application which I want to connect to a webservice
I am on a team of three people who are developing a Silverlight application.
I'm developing a Silverlight app that makes multiple async requests to a number of
I'm developing a small web application using Microsoft Silverlight 3. I'm using Microsoft Expressin
I am developing a silverlight 4.0 application which communicates with a WCF service. The
At the moment I'm developing a web based application using Silverlight 3.0. For the
We are currently developing a web application in ASP.NET MVC which would really benefit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.