Combobox in TreeViewItem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Combobox in TreeViewItem

Threaded View

  1. #1
    Join Date
    Feb 2006

    Question Combobox in TreeViewItem

    Hi all!

    I'm newbie in WPF, so sorry about stupid question.
    It is possible to show combobox side by side with selected TreeViewItem?
    I need something like shown in the 1.jpg picture.
    I tried to do thus:
            <TreeView Name="treeView1">   
                <TreeViewItem Header="aaa">   
                    <ComboBox Height="19">   
                        <ComboBoxItem IsSelected="True">111</ComboBoxItem>  
                    <TreeViewItem Header="aaa1">   
                    <TreeViewItem Header="aaa2">   
                <TreeViewItem Header="bbb">   
                    <TreeViewItem Header="bbb1" />  
                    <TreeViewItem Header="bbb2" />  
                <TreeViewItem Header="ccc" />  
    and the result you can see in the 2.jpg picture.

    Meantime I need to know, how to do this visually. Later I need to do something with SelectedItemChanged event.

    Thanks in advance!

    P.S. sorry about my english
    Attached Images Attached Images   
    Last edited by gstercken; April 20th, 2009 at 08:05 AM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center