newman
newman

Reputation: 6911

Why WPF controls don't have Tag property?

I think all WinForm controls have a Tag property which I found very convenient on occasions. However, this Tag property seems to be gone for WPF controls like DataGrid. Can anybody explain why? Is there a better way in WPF to accomplish this?

Upvotes: 5

Views: 2785

Answers (2)

SandRock
SandRock

Reputation: 5563

The Tag property misses meaning. You can use Attached Properties to create more semantic properties on any control.

Upvotes: 0

HCL
HCL

Reputation: 36775

WPF controls do have a Tag-property (Because of the base-class). However with the concept of the DataContext, the tag-property is not anymore very important.

Upvotes: 9

Related Questions