Experimental: this API is experimental and might be changed or removed in the future.

VisualElement.FindAncestorUserData

Switch to Manual
public object FindAncestorUserData ();

Description

向上搜索此 VisualElement 的层级视图并检索存储的 userData(如果找到)。

这将忽略当前 userData 并返回第一个父级的非 null userData