Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software December 2008 Entries
WPF – Hide a listbox when it doesn’t have any items
This code example will show how to hide a listbox from the user when it doesn’t have any items. It involves binding the Visibility of the listbox to the Items.Count of the listbox. We run the Items.Count through a converter that will return a Visibility.Visible object if the Item.Count is not zero. Here is the converter class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; using System.Windows; namespace HideAListBox { public class ......

Posted On Tuesday, December 9, 2008 3:48 PM

Copyright © Tim Hibbard | Powered by: