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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:03:17+00:00 2026-05-12T11:03:17+00:00

I have a listview of width set to Auto. When I run the windows

  • 0

I have a listview of width set to Auto. When I run the windows app, it opens in normal size(not maximized). But when I maximize the window, the listview’s width will be same and the space to its right is empty.

normal size
|_________________________|
Maximized
|_________________________|………..

even though the window is now in full screen occupied.
Please guide me in workin on this.

Thanks
Ramm

  • 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-12T11:03:17+00:00Added an answer on May 12, 2026 at 11:03 am

    StackPanel, by design, does not care about visual space. It aims to take up the smallest amount of space possible. You can leave the innermost StackPanel that wraps the radio buttons in place, but your outer layout containers should be changed to Grid or, as in my example below, DockPanel:

    <Window x:Class="Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="445" Width="515">
    
        <DockPanel Name="spDataFlow" Margin="0,45,0,0" >
            <DockPanel x:Name="stkPnlDataFlow" VerticalAlignment="Top">
    
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
    
                    </Grid.RowDefinitions>
                </Grid>
    
                <StackPanel Grid.Row="1" Background="Red" Margin="20,15,0,0" Orientation="Horizontal"  VerticalAlignment="Center" >
                    <RadioButton Name="rdbtnUploadData" HorizontalAlignment="Left"  VerticalAlignment="Center" FontSize="12" Foreground="White" Content="Upload Data" IsEnabled="True"  CommandParameter="UploadAll"/>
                    <RadioButton Name="rdbtnDownloadData" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Foreground="White" Content="Download Data" Margin="20,0" CommandParameter="DownloadAll"/>
                    <RadioButton Name="rdbtnUploadSelected" HorizontalAlignment="Left"  VerticalAlignment="Center" FontSize="12" Foreground="White" Content="Update Data" Margin="10,0"  CommandParameter="UpdateSelected"/>
                </StackPanel>
    
            </DockPanel>
        </DockPanel>
    
    </Window>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 236k
  • Answers 236k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You're copying the file after the hash is generated. You… May 13, 2026 at 6:28 am
  • Editorial Team
    Editorial Team added an answer There is a couple of notes about that in Xdebug's… May 13, 2026 at 6:28 am
  • Editorial Team
    Editorial Team added an answer (You're not searching through "JSON", you're searching through an array… May 13, 2026 at 6:28 am

Related Questions

I want to set the backgroun color for a GridViewColumn that is databound inside
I've got a ListView control bound to an ObservableCollection of items, and I've set
I have a StackPanel containing a StackPanel and some other items. The first StackPanel
I have a databound list view and can set all the column widths manually

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.