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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:08:58+00:00 2026-06-02T14:08:58+00:00

I have a Grid width following Column Definitions: <Grid.ColumnDefinitions> <ColumnDefinition MinWidth=320 MaxWidth=450 Width=.32*/> <ColumnDefinition

  • 0

I have a Grid width following Column Definitions:

<Grid.ColumnDefinitions>
        <ColumnDefinition MinWidth="320" MaxWidth="450" Width=".32*"/>
        <ColumnDefinition MinWidth="200" Width="Auto"/>
        <ColumnDefinition MinWidth="200" Width="Auto"/>
        <ColumnDefinition Width="Auto"/> <- (4) should fill all available space
        <ColumnDefinition MinWidth="250" MaxWidth="300" Width=".20*"/>
</Grid.ColumnDefinitions>

The problem is that setting width to Auto on column (4) zeros it’s width and last column is next to third one. I’d like to have last column aligned to right edge of app and first three to the left.

I also can’t set (4) width to star(*) – obviously it stretches relatively to first and last column.

I’ve been trying for a while with horizontalalignments but as a result – content is not filling the columns width. I could maybe bind content width to column width or sth like that, but I’m curious whether there is some easy way to achive the (4) column fill all left space.

  • 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-02T14:09:08+00:00Added an answer on June 2, 2026 at 2:09 pm

    I think you didnt quite undestand the (*) which stands for weighted average.

    so for your case.

    <Grid.ColumnDefinitions>
         <ColumnDefinition MinWidth="320" MaxWidth="450" Width="3*"/>
         <ColumnDefinition MinWidth="200" Width="Auto"/>
         <ColumnDefinition MinWidth="200" Width="Auto"/>
         <ColumnDefinition Width="5*"/>
         <ColumnDefinition MinWidth="250" MaxWidth="300" Width="2*"/>
     </Grid.ColumnDefinitions> 
    

    if you wish to make the column (4) small reduce the * weightage and increase where you like.

    Hope it helps…

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

Sidebar

Related Questions

I have the following xaml: <Border BorderBrush=Black BorderThickness=1.5 CornerRadius=5> <Grid ShowGridLines=True> <Grid.ColumnDefinitions> <ColumnDefinition Width=Auto/>
I have following Grid: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=Auto /> <ColumnDefinition Width=* /> </Grid.ColumnDefinitions> <!--
I have the following (simplified) xaml: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=143* /> <ColumnDefinition Width=135* />
I have the following xaml: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=150/> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <StackPanel Orientation=Horizontal
I have the following AutoCompleteBox defined inside DataTemplate: <Window.Resources> <DataTemplate x:key=PaneTitleTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition
I have the following scenario in XAML: <Grid Grid.IsSharedSizeScope=True> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition />
I have a WPF Grid with a XAML similar to this: <Grid width=200 Height=200
I have the following simpl WPf grid, two columns, a button in each column,
I have the following DataTemplate: <DataTemplate DataType={x:Type Client:WorkItem}> <Grid> <Grid.RowDefinitions> <RowDefinition Height=Auto /> <RowDefinition
I have the following XAML inside a 4 Row by 2 column grid. The

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.