Silverlight Multiselect Listbox

Posted by: Hannes Preishuber, on 07 Nov 2008 | View original | Bookmarked: 0 time(s)

The Listbox control of Silverlight 2 have no multi selection. Datagrid have! I want to show how to build a Listbox with Checkboxes and iterate at the end through all items an see if they are checked. Seams to be easy!? But isn't.  You can not access the content of the datatemplate. One solution is to use visualtreehelper to iterate through all controls of controltree. That is quite complkicated cause e.g a checkbox is a composition of Textblock and Rectangle. I show the databinding way which...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2372 | Hits: 157

Similar Posts

  • Silverlight MVP more
  • Getting Loopy (Matt Gertz) more
  • Mixing Silverlight and MS ASP.NET AJAX 3.5 in the same web application. more
  • Building a Silverlight 3 based RIA Image Magagement System (1) more
  • Building a Silverlight 3 based RIA Image Management System - 1 more
  • Telerik Launches RadControls for Silverlight 3 for Line-of-Business Application Development more
  • Provide startup parameters to Silverlight with InitParams more
  • Silverlight Twitter Client with authentication more
  • Whats New In Silverlight 3 - Multi-Select List Box more
  • Simple Example of Managed Extensibility Framework (MEF) in Silverlight more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD