David Sackstein's Blog
"The more that you learn, the more places you'll go.”, Dr. Seuss
Sign in
|
Join
|
Help
Home
Contact
RSS
Atom
Comments RSS
Search
Tags
3D
Adobe Flash
Animation
ASMX Web Services
ATL
C++
Clean Code
COM
DataBinding
Design Patterns
DEV
Developer Academy
DirectShow
Eclipse
Extensibility
Interop
MCPD
MediaElement
MSXML
MVVM
Parallel Extensions
Security
Silverlight
Sockets
SQL Server 2008
Tips and Tricks
Transactions
TreeView
Unity
Video
Visual Studio
Visual Studio 2010
WCF
Windows 7
WPF
News
Navigation
Home
All Posts
RSS
Popular Tags
Archives
December 2010 (3)
April 2010 (3)
March 2010 (2)
October 2009 (1)
September 2009 (2)
August 2009 (5)
July 2009 (3)
June 2009 (20)
May 2009 (10)
April 2009 (5)
March 2009 (1)
February 2009 (1)
January 2009 (2)
December 2008 (12)
April 2010 - Posts
3
Comments
How to Bind to the Index of a Collection in WPF
by
David Sackstein
Let's say you have a customer class and you are binding a DataGrid to a collection of customers. You would like the index of the customer in the collection to appear in the first column, like so: One way to do this might be to add an Index property to the Customer class and bind to that. I prefer not to go that way because it would pollute our business layer with presentation layer constraints. Solution Here is a different approach using a MultiBinding. You can download the source code for this...
תגים:
DEV
,
WPF
,
DataBinding
6
Comments
Hierarchical Grid with WPF
by
David Sackstein
A TreeView handles hierarchical data well, and a DataGrid handles tabular data. But what about hierarchical tabular data? A simple example of such a source is a System.IO.DirectoryInfo. Each item can have zero or more children of the same type, enumerated by EnumerateDirectories. I would like to have it displayed like this: Solution You can download the source code for this solution here . The inspiration for this solution came from Delay's Blog by David Anson. I think David's idea of measuring...
תגים:
DEV
,
WPF
,
DataBinding
,
TreeView
1
Comments
Project Packager Add-In for Visual Studio 2010
by
David Sackstein
This Add-In for Visual Studio 2010 will package up your solution (actually, any folder you choose) into a zip file excluding any files with extensions you specify and any folders whose names you specify.I cant upload msi files to this blog, so in order to install you will need to build the project. I packaged up the Add-In solution using the Add-In itself and uploaded it here . Download the solution, open with Visual Studio 2010 and Build All. Right click the setup project and select Install. Close...
תגים:
DEV
,
Visual Studio
,
Visual Studio 2010
,
Tips and Tricks
,
Extensibility