XAML 中一些常用属性

该篇笔记主要记录了 XAML 中的一些属性。

大小/宽度/角度等

  • Padding 内边距
  • Spacing 间隔间距大小
  • Rotation 旋转角度
  • HeightRequest 获取或设置此元素的所需高度替代
  • WidthRequest 获取或设置此元素的所需宽度替代
  • Opacity 透明度
  • Scale 缩放
  • TranslationX 水平平移
  • TranslationY 垂直平移

Options

  • HorizontalOptions 水平选项
    • Start
    • Center
    • End
    • Fill
    • StartAndExpand
    • CenterAndExpand
    • EndAndExpand
    • FillAndExpand
  • VerticalOptions 垂直选项,可选值同 HorizontalOptions
posted @ 2023-05-12 22:50  小土坡  阅读(54)  评论(0)    收藏  举报