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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:10:33+00:00 2026-05-30T02:10:33+00:00

trying first time WPF user. I read through some WPF layout docs but am

  • 0

trying first time WPF user. I read through some WPF layout docs but am not getting the hang of the layout of buttons. I’m trying to get the layout below — where there’s a button in the lower left corner and two in the lower right.

Can this be done with a single StackPanel? I tried unsuccessfully with this along with the HorizontalAlignment attributes of the buttons.

Is it more appropriate to be using a 1 row, 2 column grid, with each cell having a StackPanel?

Any suggestions much appreciated, thanks!

desired layout

  • 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-30T02:10:34+00:00Added an answer on May 30, 2026 at 2:10 am

    Personally, I tend to prefer doing this with a Grid, ie:

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
    
        <Button Grid.Column="0" Width="100">b1</Button>
        <Button Grid.Column="1" Width="100">b2</Button>
        <Button Grid.Column="2" Width="100">b3</Button>
     </Grid>
    

    This will cause the 2nd & 3rd columns to fit their contents, and the first to fill the rest of the space. If you place each button in the appropriate column, you’ll get that layout. (Note that you’ll likely want to adjust the sizing and margins on the buttons to get nice spacing, as well.)

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

Sidebar

Related Questions

I'm testing out WPF for the first time and I'm trying to call a
I am trying to loop through some controls in a Powershell / WPF application.
I am trying for the first time to install some Ruby gems on Mac
i am trying google map first time i got a some tutorial from From
This is my first time trying to accomplish core data and been having some
Today I've installed Bada SDK and trying first time to build some apps on
I was trying for the first time to read data from a file, a
First time trying to deal with users logging in with ASP.net and haven't had
this is my first time trying to use document classes in AS3 and im
It's my first time trying to make anything really interesting in C# and I

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.