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

  • SEARCH
  • Home
  • 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 6628831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:10:26+00:00 2026-05-25T22:10:26+00:00

I have Border control defined like so: <Border Background=Azure Grid.Row=2> <ContentControl Width=Auto Height=Auto Regions:RegionManager.RegionName=MainContent

  • 0

I have Border control defined like so:

<Border Background="Azure" Grid.Row="2">
    <ContentControl Width="Auto" Height="Auto" Regions:RegionManager.RegionName="MainContent" />
</Border>

I can see Azure background in whole area

Now I inject my view into this ContentControl (it’s PRISM). View looks like this..

<toolkit:BusyIndicator IsBusy="{Binding IsBusy}">
        <Grid Margin="10" DataContext="{Binding}"
                infBehaviors:RegionPopupBehaviors.CreatePopupRegionWithName="ViewPopup"
                infBehaviors:RegionPopupBehaviors.ContainerWindowStyle="{StaticResource PopupStyle}">
            <!--Define rows in a grid-->
            <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <!--Define columns in a grid-->
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="65" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

Now when I place new UserCOntrol on top of my Grid – I expect it to cover whole “Azure” area. But I only see overlay with size of my data entry form. It seems that second grid does not “fill” ContentControl – only takes as much space as needed. How do I force it to fill? I set Auto column and row – thinking they will stretch but no..

EDIT:
Screenshot from Silverlight Spy.. It shows that ContentControl from Shell covers whole area but grid inside totally ignores my “*” sizes. Also it does work in design mode – it stretches to whole design area…

enter image description here

  • 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-25T22:10:27+00:00Added an answer on May 25, 2026 at 10:10 pm

    Make sure you have HorizontalContentAlignment and VerticalContentAlignment of the ContentControl set to Stretch. ^_^

    e.g.

    <Border Background="Azure" Grid.Row="2">
        <ContentControl HorizontalContentAlignment="Stretch" 
        VerticalContentAlignment="Stretch" 
        Width="Auto" Height="Auto" Regions:RegionManager.RegionName="MainContent" />
    </Border>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following Silverlight control defined: <object id=objImageViewer data=data:application/x-silverlight-2, type=application/x-silverlight-2 width=100% height=500px> <param
I would like to have fuzzy looking border around my Canvas control. Basically, I
I have a border layout whose center panel is defined like the below. {
I need to create control to draw border around its child. So, I have
I have a border element with rounded corners containing a 3x3 grid. The corners
I have a simple style for label controls. I'd like to define a control
I have a recursively defined user control that needs the following properties: there are
I have the following iframe control (intended to be a facebook like button): <iframe
I have a simple extender component that draws 3D borders around any Control. In
I have a border layout in ExtJS, The north region contains some HTML, but

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.