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 839331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:26:53+00:00 2026-05-15T05:26:53+00:00

I am new to Silverlight/XAML so apologies if this is an obvious question. How

  • 0

I am new to Silverlight/XAML so apologies if this is an obvious question.

How can you detect when the OOB window is resized and resize your own controls to fit the new window size?

  • 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-15T05:26:53+00:00Added an answer on May 15, 2026 at 5:26 am

    In Silverlight (regardless of OOB or not) you wouldn’t normally need to detect window resizing to perform your own resizing. Using the correct panel types sorts that out for you.

    For example:-

    <UserControl x:Class="SilverlightApplication1.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     >
     <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Rectangle Fill="Green" Grid.Row="0" Grid.Column="0" />
        <Rectangle Fill="Red" Grid.Row="0" Grid.Column="1" />
        <Rectangle Fill="Yellow" Grid.Row="1" Grid.Column="0" />
        <Rectangle Fill="Blue" Grid.Row="1" Grid.Column="1" />
    </Grid>
    </UserControl>
    

    Here the four rectangles divide up the window into quarters. It may be worth your while spending a little time review the documentation for the various panel types such as Grid, Canvas and StackPanel to get a feel for how each works.

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

Sidebar

Related Questions

I'm very new to Silverlight so I apologise if this question is obvious but
With the new Silverlight 5, we can now have an In-Browser elevated-trust application. However,
I can create new Silverlight App with .NET RIA Services enabled. But when I
I am new in Silverlight. When I add some control to my xaml file
I'll preface this and say that I'm new to Silverlight development by about week
I'm fairly new to the Silverlight and the MVVM / Prism pattern so this
I'm brand new to learning Silverlight/XAML/C#. I'm using an ASP.NET function to pass a
I am developing window phone 7 application. I am new to the silverlight. I
I am new to Silverlight, but I couldn't find anything about this when I
I am new to Silverlight and XAML. While trying to learn the syntax and

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.