Skip to content

How Do I Work Around the Lack of a Tag Property?

Benjamin edited this page Aug 14, 2020 · 1 revision

Control Tag Property

In VB6, every control had an extra property called Tag. This doesnt exist in wpf controls, but is easy to work around.

If you were using the MyControl.Tag, just create a variable of the appropriate type called string MyControlTag = ""; for the class. Then, in every usage of the tag, simply use the variable instead.

Clone this wiki locally