Home > Silverlight > ComboBox code updated to Beta2

ComboBox code updated to Beta2

Here is the source for combobox which works in Beta2. looks like there is bug in ContentPresenter .

 Jeff’s workaround seemed to have worked

Here is the source

Categories: Silverlight
  1. Aaron
    June 19, 2008 at 2:50 pm | #1

    This works great, with one problem. When displayed in a Grid, the drop down list is clipped to the size of the cell in which the combo box is located.

  2. lee
    June 19, 2008 at 3:07 pm | #2

    I did not try using this in Datagrid. I think that is because the the items are not presented in Popup. I did not have any luck trying to place items in the popup

  3. Redjackl
    July 9, 2008 at 5:22 am | #3

    Is there any way i could use combo box inside grid or datagrid.?plz help me out..

  4. lee
    July 9, 2008 at 7:51 am | #4

    Not as it is I could not make it work with a popup.
    There is another Combobox written by SlAdapter, you can find it here
    http://silverlight.net/forums/p/17779/63170.aspx#63170(look at last post). it uses popup.
    That might work better in the datagrid. did not try it myself

    Thanks

  5. Redjackl
    July 9, 2008 at 8:24 am | #5

    Thanks for the link.
    Perhaps you can have a look at Datepicker control source code in beta 1. it uses poup to display calendar.

  6. lee
    July 9, 2008 at 8:58 am | #6

    That was my initial thought , but the main difference is the popup in that case is containing only one child. here it has to be itemscontrol

    I think Combobox from microsoft should not be far off. so I would rather wait for the correct implementation than some hack

  7. naveen
    July 13, 2008 at 2:26 pm | #7

    Adding the combobox to a canvas will help you out, i have tried it and it is working fine.

  8. lee
    July 14, 2008 at 12:13 am | #8

    Naveen,
    Thanks for the hint

  1. No trackbacks yet.