list box in a combo box?


 hi,

 i wondering if possible have list box / button / text field within combo box item? tried write in c#, when run program, doesn't appear. have idea it?

 thanks lot!

try this

combobox _newcombo = new combobox();

_newcombo.name = "mynewcombo";

stackpanel _sphorizontal; for (int k = 0; k < 4; k++)

{

_sphorizontal = new stackpanel();

_sphorizontal.orientation = orientation.horizontal;

textblock _newtextblock = new textblock();

_newtextblock.text = "text " + k.tostring();

_sphorizontal.children.add(_newtextblock);

checkbox _newcheckbox = new checkbox();

_newcheckbox.ischecked = true;

_newcheckbox.name = "check " + k.tostring();

_sphorizontal.children.add(_newcheckbox);

_newcombo.items.add(_sphorizontal);

}



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'