Sublassing WebLabel

I want a way to know when the text of a label is changed.
I’ve subclassed WebLabel for MyWebLabel, but how to I get to know when
l.Text = “something”
Has been performed?

  1. Make a computed property named MyText as string
  2. Under Get put return me.Text
  3. Under Set put me.Text=value

Then use myLabel.myText=“asdf”. You can catch any changes within the computed property’s set method.

I see. So the existing properties (computed properties) themselves can not be overridden?

Pretty sure no but maybe someone else knows a way. Just tested and it causes the expected infinite loop.

Properties are not virtual so no
You can shadow them but it’s not recommended as it can lead to hard to find bugs