The Background of a Region is made up of zero or more BackgroundFills, and zero or more BackgroundImages.
1.那么就得搞明白什么是 BackgroundFills和BackgroundImages.
Likewise, the border of a Region is defined by its Border, which is made up of zero or more BorderStrokes and zero or more BorderImages.
2,搞明白什么是BorderStrokes和BorderStrokes
这两句话应该说的是region的背景和边界是由什么组成的问题。
All BackgroundFills are drawn first, followed by BackgroundImages, BorderStrokes, and finally BorderImages. The content is drawn above all backgrounds and borders.这段话讲了region渲染的次序问题。
Region subclasses which layout their children will position nodes by setting layoutX
/layoutY
and do not alter translateX
/translateY
, which are reserved for adjustments and animation
这句话不明白,layoutX
/layoutY
/translateX
/translateY
, 各自是什么?