WPF功能点


if ("TextBoxBase".Contains(Keyboard.FocusedElement.GetType().BaseType.Name)) { return; }

1、获取当前焦点所在控件

原文地址:https://www.cnblogs.com/yangleiWPF/p/5702321.html