Guys,
Is it possible to change the border style of controls when they get focus? Ideally across the board, if not how would I do it for each control?
I have a Silverlight app that needs to be much more visually accessible than normal and need a much stronger highlight on active controls.
i need to do something like this for textbox, button, combobox, radiobutton, checkbox etc etc...
ThanksCode:public AccessibleTextBlock() { InitializeComponent(); ContentSimpleText.GotFocus += (o, e) => { ContentBorder.BorderThickness = new Thickness(2); ContentBorder.BorderBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0x00, 0x00)); }; ContentSimpleText.LostFocus += (o, e) => { ContentBorder.BorderThickness = new Thickness(0); };
Bob




Reply With Quote