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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:02:50+00:00 2026-05-25T16:02:50+00:00

What does * mean in XAML. I have a grid of width 400. And

  • 0

What does * mean in XAML. I have a grid of width 400. And divided the grid to 3 columns.
What does *.4 mean? I thought it is 40% of the space available. so thought the first 2 columns will get 40% percent each and the rest is taken by the third column.
but looks like, the third column is taking 60% and the first two are getting 20% each.
How does this work?

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width=".4*"/>
        <ColumnDefinition Width=".4*"/>
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
</Grid>

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-25T16:02:51+00:00Added an answer on May 25, 2026 at 4:02 pm

    Basically, the default is “1*”, so what you have above is effectively:

    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="0.4*" />
        <ColumnDefinition Width="0.4*" />
        <ColumnDefinition Width="1.0*" />
    </Grid.ColumnDefinitions>
    

    The Star grid spacing (GridUnitType.Star) proportionally distributes space. In your case, you have a total of 1.8 (1.0 + 0.4 + 0.4), so the first two columns each get 22.2% (0.4/1.8) of the width allocated to them.

    To get what you want, you can use:

    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="0.4*" />
        <ColumnDefinition Width="0.4*" />
        <ColumnDefinition Width="0.2*" />
    </Grid.ColumnDefinitions>
    

    This sets the total to 1.0, so each becomes a percentage.

    Note that this will give exactly the same result as doing:

    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="40*" />
        <ColumnDefinition Width="40*" />
        <ColumnDefinition Width="20*" />
    </Grid.ColumnDefinitions>
    

    Since the total proportions are divided up by the total (100) now, still giving 40%, 40%, 20%.

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

Sidebar

Related Questions

What does this mean: Next add reference to: MySql.Data actually I have downloaded mysql
What does multiplexing mean (in it's abstract form)? I understand you have 'multiplexers' in
I have a regular expression with a pound # modifier. What does \# mean
What does {x:Static} mean in XAML? Code sample: <SolidColorBrush Color={x:Static SystemColors.ControlColor} />
I recently saw some XAML code that looked as follows: <Grid.ColumnDefinitions> <ColumnDefinition Width=2* />
Possible Duplicate: What does “{x:Static}” mean in XAML? In a xaml file there is:
Does this mean I can't update another table from a trigger if I'm using
Does it mean search the previous folder for somefile.h or the project folder for
Does [_\s^] mean underscore and whitespace but not (quote) in Reg I understand that
What does _currentHandle() mean below? template<class SpiHandleT> class SpiHandleIterator : public ISpiHandleIterator<SpiHandleT> { public:

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.