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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:28:07+00:00 2026-06-06T02:28:07+00:00

In XAML, you can define a size property (such a length or width) in

  • 0

In XAML, you can define a size property (such a length or width) in “*” units, in which * represents a part of the remaining space.

So, if I have a parent element that is 1000px wide, and it has 2 children, which are both defined as being 1* wide, they will be 500px each. If one is defined as 3*, and the other as 1*, then one will be 750px, the other 250px.
If there is a third element, and the widths of the 3 are defined as “100px”, “” “2” respectively, then the widths of the 3 will be 100px, 300px, 600px.

Is there a CSS equivalent of this, or should I just simulate it using calc()?

  • 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-06T02:28:12+00:00Added an answer on June 6, 2026 at 2:28 am

    Flexible box layout model does that with an OK support matrix (no IE)

    It does exactly what you’re after, e.g. for your scenario 3:

    <div class="box">
      <div>un</div><div>deux</div><div>trois</div>
    </div>
    
    .box {
      width: 1000px;
      display: box;
      box-orient: horizontal;
    }
    
    .box > div:nth-child(1){ width:100px; }
    .box > div:nth-child(2){ box-flex: 1; }
    .box > div:nth-child(3){ box-flex: 2; }
    

    Fiddle’d from html5rocks example

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

Sidebar

Related Questions

When you're creating a Grid in xaml you can define the RowDefinitions as such
How can I load XAML which is from the DataBase into the grid control
I can open the DefaultTemplate.xaml that was installed as part of our TFS 2010
Theoretically, I think that I can define Brushes and Colors etc. in an xaml
I need to define canvas width and height in centimeters, so basically I have
I have two resources in my XAML which represent a Star and a Half
We can check some control's string property which has been empty like following code:
Here I have the XAML for a label, but I want to define it
I'm trying to define a local resource in my xaml which is supposed to
How can I change a XAML code (which represent a set of shapes) to

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.