Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..
4 replies. Latest Post by silverstarter on June 8, 2009.
(0)
silverst...
Member
216 points
146 Posts
06-05-2009 4:08 AM |
hi, im using Datatemplates for visualizing some observable collections
the nasty thing is, the name of the objects are in a relation-combobox's list
once a name is changed the binding updates this name in the combobox
now to the problem..
if the name is longer than the old width of the dropdownlist it adds scrollbars in width and ofc in height aswell since the horizontal scrollbar consumes some space..
.updatelayout()
doesnt solve this problem and since there are a couple of comboboxes which hold the changed name it would end up rebuilding the complete visual part of that ... isnt there a working way to (re)render the dropdownlist of the combobox to a width which fits to the stringlength or simply hit something easy as updatelayout()..
thx in advance
silverstarter
vincracker
Contributor
3114 points
521 Posts
06-05-2009 5:30 AM |
HI,
Look at the following links
http://www.silverlightshow.net/items/Silverlight-ComboBox.aspx
http://silverlight.net/forums/t/30705.aspx
06-05-2009 8:51 AM |
thanks for the links but they did not solve my problem.
first link is about a external built combobox of pre 2.0 more like a autocompletebox and doesnt contain my problem.
second link is just about a single combobox which may changes the amount of items in its source. (that already works nice for me with a little hack)
simply removing the combobox and fit in a new generated one is no solution since its built in a listbox as one part of a line (and may as one of a hundred of boxes)
its not filled in codebehind. its created and filled by databinding and datatemplates, dont know how i could notice that the name of a contained Item changed
resizing the dropdownlist seem not to work anyways... once loaded it never update the width or height if its not rebuilded -- and i dont want/cant do that
anyone any ideas?
06-05-2009 3:11 PM |
Sorry, But I can't seem to have a solution for this. What I can think of is, remove the combobox and add new one with the same features. I don't know whether it is possible or not in your case. This is the bug we are facing for a while. Might be someone from inside MS can help with this.
06-08-2009 3:51 AM |
thanks for your time, well i hope that resizingbug will b fixed with a general update later,
till there i seem to be forced to live with it