When trying to use the following
EventManager.RegisterClassHandler(typeof(TextBox),
TextBox.GotFocusEvent,
new RoutedEventHandler(TextBox_GotFocus));
I am getting an error on 2nd parameter: "'System.Windows.Controls.TextBox' does not contain a definition for 'GotFocusEvent'"
Any help how to resolve this?
I am in the process of adding "Select All" behaviour for all TextBox in my silverlight app and by having this at Application_Startup in App.xaml.cs I thought would do the trick.
Thanks in advance.