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

ScrollView.SetContents

切换到手册
public void SetContents (Experimental.UIElements.VisualElement contents);

参数

contents要在此 ScrollView 中显示的元素

描述

用此元素替换 contentContainer。层级视图将删除先前内容容器