How can I focus a particular item in ListBox in WPFHi,<br/><br/>  I have a listBox whose elements are binded using <strong>ItemsSouce. <br/></strong>Now in the code behind I want to move the focus to the 3rd item in the listbox.<br/>Can somone tell me as to how can I acheive this?<br/>I think that once we get the access to listboxItem than we can easily set the focus by calling &lt;listboxitem&gt;.Focus(). But now the question is how can I get a particular ListBoxItem object for a binded ListBox?<br/><br/>Even though it looked quite obvious to me, I didnt found a solution.© 2009 Microsoft Corporation. All rights reserved.Wed, 20 May 2009 09:59:20 Zdad3e688-5aca-4840-842b-7189c426d83chttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/dad3e688-5aca-4840-842b-7189c426d83c#dad3e688-5aca-4840-842b-7189c426d83chttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/dad3e688-5aca-4840-842b-7189c426d83c#dad3e688-5aca-4840-842b-7189c426d83cnarmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaHow can I focus a particular item in ListBox in WPFHi,<br/><br/>  I have a listBox whose elements are binded using <strong>ItemsSouce. <br/></strong>Now in the code behind I want to move the focus to the 3rd item in the listbox.<br/>Can somone tell me as to how can I acheive this?<br/>I think that once we get the access to listboxItem than we can easily set the focus by calling &lt;listboxitem&gt;.Focus(). But now the question is how can I get a particular ListBoxItem object for a binded ListBox?<br/><br/>Even though it looked quite obvious to me, I didnt found a solution.Wed, 20 May 2009 09:59:20 Z2009-05-20T09:59:20Z