第二十二章:動畫(八)

旋轉和錨 AnchorX和AnchorY屬性爲「縮放」和「旋轉」屬性設置縮放或旋轉的中心,因此它們也會影響ScaleTo和RotateTo動畫。 CircleButton程序將一個Button旋轉一個圓圈,但不像你之前看到的那樣。 該程序圍繞屏幕中心旋轉按鈕,爲此它需要AnchorX和AnchorY。 XAML文件將Button放在AbsoluteLayout中: <ContentPage xml
相關文章
相關標籤/搜索