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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:59:49+00:00 2026-06-04T22:59:49+00:00

How are child controls made to appear in order within a xaml Grid ?

  • 0

How are child controls made to appear in order within a xaml Grid?

For e.g., using the following:

<Grid>
    <igRibbon:XamRibbon...>
    <igWindows:XamTabControl...>
    <igWindows:XamTabControl...>
</Grid>

I would like the

  • ribbon to appear at the top of the window
  • followed by the 2 XamTabControls in order

But, my XamTabControl seems to stretch occupying the whole window hiding the XamRibbon.


Tried the following:

I’m sure this is not very tricky or difficult, but I couldn’t find a proper control/property that needs to be set. I tried setting Grid.Row="1" (for the first XamTabControl), but that seemed to make no difference.

  • 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-06-04T22:59:52+00:00Added an answer on June 4, 2026 at 10:59 pm

    Solution 1

    By default controls will stretch to fit the size of the grid cell. To fix this you can either define more than one grid row / column through something like …

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height=""/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width=""/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
    </Grid>
    

    Then you can explicitly set which column and row you want each control in via the Grid.Row and Grid.Column attached properties. You can specify a height / width of the column / row, or leave that part out and they will default to being uniform.

    If the Height of the first row is set to the value Auto, it distributes height evenly based on the size of the content that is within that row.

    Solution 2

    Or change the vertical and horizontal alignment of each control inside from stretch to some other value.

    Solution 3

    A third solution could be change the <Grid> to a <UniformGrid>

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

Sidebar

Related Questions

Iam using windows forms. How can I query all child controls of a Form
I have a Panel which hosts a number of child controls in a grid
What is the logic for displaying controls within a WPF Grid when neither rows
How can I get the child controls of type ComboBox in MyContainer Grid in
C#: Does SuspendLayout cascade to child controls? Do I have to iterate the child
I have a user control with several child controls. I need the user interface
All of the examples of ASP.NET composite controls always clear child controls as the
I have a custom control for a LayoutPanel that holds child controls. I want
The SSTab does hide/show the child controls by shifting them to/from a negative value.
Is there a way to determine if an ItemsControl has any child controls with

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.