Click here to Skip to main content
15,887,135 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF samples Pin
arkiboys6-May-11 2:57
arkiboys6-May-11 2:57 
AnswerRe: WPF samples Pin
Ian Shlasko6-May-11 3:10
Ian Shlasko6-May-11 3:10 
AnswerRe: WPF samples Pin
Renat Khabibulin9-May-11 1:09
Renat Khabibulin9-May-11 1:09 
GeneralRe: WPF samples Pin
arkiboys9-May-11 1:11
arkiboys9-May-11 1:11 
GeneralRe: WPF samples Pin
Renat Khabibulin9-May-11 1:32
Renat Khabibulin9-May-11 1:32 
GeneralRe: WPF samples Pin
arkiboys9-May-11 1:42
arkiboys9-May-11 1:42 
QuestionMake two listboxes have the same width Pin
Jean-Louis Leroy6-May-11 2:43
Jean-Louis Leroy6-May-11 2:43 
AnswerRe: Make two listboxes have the same width Pin
Ian Shlasko6-May-11 3:09
Ian Shlasko6-May-11 3:09 
The code you posted should do exactly what you want.

When you use star-sizing, the grid does NOT resize columns based on child control sizes... First it sets the size of fixed columns (Like your "40"), then it figures out the size of "Auto" columns by asking the controls in those columns what they need, then it splits up the remainder into the star-sized columns.

My suggestions would be:

1) Make sure the grid itself isn't the piece resizing... If it's inside, say, a ScrollViewer, then it'll enlarge itself to (2 x the widest listbox) + 40... It might be the grid itself being cut off on the right, not the second listbox

2) If your actual code is more complex than this (And I suspect it is), try commenting out a piece at a time until you see the behavior you're expecting.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Make two listboxes have the same width Pin
Jean-Louis Leroy6-May-11 3:18
Jean-Louis Leroy6-May-11 3:18 
GeneralRe: Make two listboxes have the same width Pin
Ian Shlasko6-May-11 3:31
Ian Shlasko6-May-11 3:31 
GeneralRe: Make two listboxes have the same width Pin
Jean-Louis Leroy9-May-11 1:23
Jean-Louis Leroy9-May-11 1:23 
AnswerRe: Make two listboxes have the same width Pin
Renat Khabibulin9-May-11 1:26
Renat Khabibulin9-May-11 1:26 
Questionselect columns to load Pin
picasso25-May-11 18:49
picasso25-May-11 18:49 
QuestionHow to read the values from listbox Item source Pin
Rocky235-May-11 18:38
Rocky235-May-11 18:38 
AnswerRe: How to read the values from listbox Item source Pin
Thanigainathan.S6-May-11 0:38
Thanigainathan.S6-May-11 0:38 
AnswerRe: How to read the values from listbox Item source Pin
Pete O'Hanlon6-May-11 1:12
mvePete O'Hanlon6-May-11 1:12 
QuestionWPF 3d iges, catpart or step modeling Pin
rafaeltejera5-May-11 11:17
rafaeltejera5-May-11 11:17 
QuestionCustom Control & Binding woe Pin
Super Lloyd4-May-11 15:36
Super Lloyd4-May-11 15:36 
AnswerRe: Custom Control & Binding woe Pin
Super Lloyd4-May-11 15:53
Super Lloyd4-May-11 15:53 
AnswerRe: Custom Control & Binding woe Pin
Super Lloyd4-May-11 15:59
Super Lloyd4-May-11 15:59 
QuestionBest Way To Do This Pin
Kevin Marois4-May-11 12:57
professionalKevin Marois4-May-11 12:57 
AnswerRe: Best Way To Do This Pin
Pete O'Hanlon4-May-11 13:17
mvePete O'Hanlon4-May-11 13:17 
GeneralRe: Best Way To Do This Pin
Kevin Marois4-May-11 13:21
professionalKevin Marois4-May-11 13:21 
GeneralRe: Best Way To Do This Pin
SledgeHammer014-May-11 14:19
SledgeHammer014-May-11 14:19 
AnswerRe: Best Way To Do This Pin
Renat Khabibulin4-May-11 16:55
Renat Khabibulin4-May-11 16:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.