title: Combobox DropDownOpened event
body: <p>I have a combo box inside a list view. And different items (rows) in the list view need to display (based on some condition) one among 3 sets of combo box items in the respective combo box which is . Right now I am achieving this by using 3 data templates bound to 3 different properties of <code>List&lt;string&gt;</code>. I am hooking up the appropriate data templates during the <code>DropDownOpened</code> event of the combo boxes. </p>
  
  <p>The problem that I am facing is that I am having to click the combo box twice each time to have it dropped down. I did a <code>Debug.WriteLine()</code> to see if my first click does the job of selecting a data template, I found that it indeed does. But just that it does not drop down at the first click itself. </p>
  
  <p>I guess this is because I am changing the data template after the combo box has dropped down its popup and hence it refreshes again whose results are furnished only after I perform the second click.</p>
  
  <p>My question is whether there is any other way of accomplishing what I am trying or do I have to make any changes in my existing <code>DropDownOpened</code> event handler.</p>
  
  <p>Please suggest.</p>
  
  <p>EDIT : I'm using WPF</p>
  
  <p>Thanks</p>