New Posts New Posts RSS Feed: ListBoxItem Style In Navigation Template
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

ListBoxItem Style In Navigation Template

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Topic: ListBoxItem Style In Navigation Template
    Posted: 01-Jul-2011 at 11:20am
In the DevForce JetPack Navigation Template, there is a file called CoreStyles.xaml.  In this file there is a default style for ListBoxItem.  There is a bug in this style.
 
The issue is that the SL ToolKit has a control called the AutoCompleteBox.  This control has a dropdown which shows the items, and the items use the default ListBoxItem style.  If the style from the DevForce template is used, the control does not work properly.  If the standard SL template is used, it works fine.
 
To recreate the issue, create a new DevForce Navigation project (I used the JetPack one) and add a AutoCompleteBox which is hooked up to a datasource such as NorthWindIB Customers.  Then run the app.  Type in a letter, such as G.  It will show several items.  Then delete the G, and type in E.  Instead of just showing the items that start with E, it will show both the E and G items.  Continue to do this, and the list just gets longer and longer, the list never getting cleared out.
 
Now, go into CoreStyles and give the default ListBoxStyle a Key so it is not used in the AutoCompleteBox, and suddenly the AutoCompleteBox works just fine.  I really don't know the connection between the two, but it took me quite some time to narrow it down to the template as the source of the problem and I just wanted to pass this on.
 
Greg
Back to Top
robertg View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 15-Mar-2011
Location: California
Posts: 87
Post Options Post Options   Quote robertg Quote  Post ReplyReply Direct Link To This Post Posted: 01-Jul-2011 at 1:17pm
Thanks for the heads up, Greg. I'll reproduce it then submit a bug report on the issue.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down