![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | ItemTemplate for an empty collection Is there a way to define a template for ListBox to appear when ItemsSource is set to an empty collection? E.g. I want to show "No entries" text if the result of a DB query is empty set. Thanks, -O. |
My System Specs![]() |
| | #2 (permalink) | ||||||||||||
| Guest | Re: ItemTemplate for an empty collection Hi, OgreFX wrote:
set to the ItemsSource, and setting the "Template" property to something else if the Count is 0. HTH, Laurent -- Laurent Bugnion [MVP ASP.NET] Software engineering, Blog: http://www.galasoft.ch PhotoAlbum: http://www.galasoft.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch | ||||||||||||
My System Specs![]() | |||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding to a collection | Bill Swartz | PowerShell | 1 | 04-02-2008 06:57 PM |
| Music Collection | SiGra | Vista music pictures video | 2 | 01-01-2008 08:49 AM |
| file folder icons display non-empty folders as empty | nodaway | Vista file management | 1 | 12-26-2007 12:33 AM |
| Do You have any HDCD's in Your CD-collection? | Thomas Bergman | Vista mail | 0 | 12-14-2006 03:36 AM |
| ListBox ItemTemplate Wrapping and others | Jan Kucera | Avalon | 0 | 11-07-2006 04:30 PM |