ContentLink.LostFocus 事件

定义

当链接失去焦点时发生。

// Register
event_token LostFocus(RoutedEventHandler const& handler) const;

// Revoke with event_token
void LostFocus(event_token const* cookie) const;

// Revoke with event_revoker
ContentLink::LostFocus_revoker LostFocus(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler LostFocus;
function onLostFocus(eventArgs) { /* Your code */ }
contentLink.addEventListener("lostfocus", onLostFocus);
contentLink.removeEventListener("lostfocus", onLostFocus);
- or -
contentLink.onlostfocus = onLostFocus;
Public Custom Event LostFocus As RoutedEventHandler 

事件类型

注解

重要

此 API 支持内容链接。 高于 Windows 10 版本 1903 的 Windows 版本中不提供启用内容链接的 Windows 功能。 在高于 1903 版本的 Windows 版本中,XAML 文本控件的内容链接将无法正常运行。

有关详细信息,请参阅 UIElement.LostFocus

适用于