Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am a beginner in wpf.I have to develope one
CustomComboBoxControl
.
when i placed this
customcombobox
on window it has to works as follows

<CustomComboBox1><br />
 <Button /><br />
 <Button /><br />
 <Button /><br />
</CustomComboBox1> 


How To do this? Thanks in advance
Posted
Comments
Pheonyx 30-May-13 8:27am    
So you need a combo box that contains a list of buttons?
Neelendu Kumar 30-May-13 8:33am    
yes...
but button should be adding when i implement that combobox on window.
Pheonyx 30-May-13 8:48am    
But how do you know how many buttons to add? Why are you doing this? (just trying to get an understanding of why you would need a combo box like this as it seems a little odd?
Neelendu Kumar 30-May-13 8:53am    
I want to add feature as like listbox or list view have (how many button we want to add we can add).
Pheonyx 30-May-13 9:04am    
I'm not sure how you could do this, but I would suggest looking at creating a custom ComboBoxItem (http://msdn.microsoft.com/en-us/library/ms609786.aspx) and applying that via a style maybe to the Combobox itself (http://msdn.microsoft.com/en-us/library/system.windows.controls.combobox.aspx)

The links are just to the MSDN pages for the two components as it was looking at that which gave me the idea. Someone else might be able to either give you a better approach or an example of how to achieve what I am referring to. It is not something I have done hence why I am just giving the idea.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900