Skip to main content

Microsoft Silverlight

Answered Question Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..RSS Feed

(0)

silverstarter
silverst...

Member

Member

216 points

146 Posts

Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..

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
vincracker

Contributor

Contributor

3116 points

522 Posts

Re: Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..

 HI,

Look at the following links

http://www.silverlightshow.net/items/Silverlight-ComboBox.aspx

http://silverlight.net/forums/t/30705.aspx
 

silverstarter
silverst...

Member

Member

216 points

146 Posts

Re: Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..

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?

 

silverstarter

vincracker
vincracker

Contributor

Contributor

3116 points

522 Posts

Answered Question

Re: Re: Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..

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.

silverstarter
silverst...

Member

Member

216 points

146 Posts

Re: Re: Issues with ComboBox's - dynamic modifyed dropdown list ->scrollbars added..

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

silverstarter

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities