1<trigger property="iskeyboardfocused"Value="true">2<!--<setter property="renderdefaulted"Targetname="Chrome"Value="true"/>-->3<setter property="BorderBrush"Targetname="Bor">4<Setter.Value>5<lineargradientbrush endpoint="1,0"Startpoint="0,0">6<gradientstop color="#517997"offset="0.25"/>7<gradientstop color="#71D6FF"offset="0.75"/>8</LinearGradientBrush>9</Setter.Value>Ten</Setter> One<setter property="borderthickness"Targetname="Bor"Value="2"/> A</Trigger>
Because the computer is a multi-thread thread, there are multiple windows on the desktop, but the keyboard focus exists in the active window.
How does the keyboard focus for the active window control be defined, based on my judgment that the current control has been focused before, but the other controls have not received the focus.
The above is a bit difficult to understand, we can understand that the keyboard focus of each active window must be on a control, when a control focus on the keyboard focus, but lose focus is not equal to lose
Keyboard focus, only the focus of another control or the window becomes an inactive window that loses keyboard focus.
Iskeyboardfocused--Keyboard focus