Lee Atkinson
Lee Atkinson

Reputation: 2181

Silverlight TreeView in ComboBox (or just a custom dropdown control)

I was wondering if I can have a ComboxBox with a Treeview as the selector rather than a list?

I note that there is a ComboBox.ItemsPanelTemplate, but I don't know what I need to do to get this to work?

I could build a control 'from the ground-up' with a separate TextBox, Button and TreeView in a PopUp control, but wondered if there is an easier way.

Lee

Upvotes: 1

Views: 2091

Answers (2)

pdelaci
pdelaci

Reputation: 9

I am working on similar theme as we speak. I am using the Expander control from the Silverlight Toolkit with a TreeView control inside it. When an item is selected in the TreeView, it sets the Header of the Expander and then collapses the Expander.

Initial tests indicate it's OK but as I say, just started with it myself. Will let you know if I hit any stumbling blocks.

Upvotes: 0

Jeff Gwaltney
Jeff Gwaltney

Reputation: 259

Are you just wanting the combobox for presentation purposes regarding the treeview?

Why not use a treeview as is and just trigger the display via visibility or animation from a button or control of some sort?

Upvotes: 1

Related Questions