May 2008 - Posts
WPF introduces the concept of “lookless controls”. Now a developer can select a control based on its functionality and not concern themselves with its appearance. The appearance can be customized to the developers needs. In this video, Todd Miranda demonstrates how to customize the appearance of ListBox ListItems using templates.
By: Todd Miranda
The video shows how to use exceptions to handle expected events close to the source. It also discusses VB.NET’s Application Events (not available in C#), focusing on unhandled exceptions.
By: Pat Tormey
The video shows how to create an event on .Net Framework’s 2.0 (Visual Studio 2005) SqlDependency Cache to notify the WinForm application that the underlying data has changed. It uses Typed Datasets and demonstrates how to add a partial class to the DataAdapter to expose the SQL Command for use with SQL Dependency.
Technical Note: SqlDependency uses SQL Server Notification Service running on SQL Server 2005/2008 and required SQL CLR enabled on the server. See “Query Notifications in ADO.NET 2.0 by Bob Beauchemin”
By: Pat Tormey
It is often necessary to bind data of one type to a property of another type in an effort to represent the data in different way. In this video, Todd Miranda demonstrates how to create a ValueConverter that allows you to bind data of one type to a property of another type.
By: Todd Miranda