C# 按tab键就下一个框var text = new TextBox Margin = new Thickness0 5 0 5 FontSize = 17 Foreground = BrushesBlue Ve
text.KeyDown += (sender, e) => { if (e.Key == Key.Tab) { e.Handled = true; var request = new TraversalRequest(FocusNavigationDirection.Next); (sender as UIElement).MoveFocus(request); } };
原文地址: https://www.cveoy.top/t/topic/c0NN 著作权归作者所有。请勿转载和采集!