I have an idea of implementing holding event handler for all text-type controls ( label, textbox, passwordbox, hyperlink etc. ) in order to show message popup for allowing suggest a better translation of this text.
Is it possible to implement such type of event handler for all controls that get added/removed from/to visual tree.
Without doing such for each element:
<TextBox Holding="HoldingEventHandler"/>
I have tried this in my MainPage.xaml.cs:
AddHandler(Control.HoldingEvent, new RoutedEventHandler(HoldingOccured), true);
But it fails with exception:
Value does not fall within the expected range.