How to reuse a custom datagrid column code in WPF?
问题 Using VS 2010 I plan to make several datagrid template columns, but they will all contain a textblock and I want to them to behave like a text column in terms of sorting, filtering, editing, etc. (For example, a column that has a textblock and an image within a stackpanel, but behavior-wise it should really be all about the text.) When using a template column, I've learned that much of the functionality associated with a normal text cell must be redone. For instance, in order to make the text