【发布时间】:2022-01-10 14:56:10
【问题描述】:
当我的计时器低于 10 秒时,我想改变它的位置。它在 xaml 中声明为相对布局的子级:
<local:Timer
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width , Factor=0.48}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent , Property=Height , Factor=0.45}"/>
Timer 只是一个包含标签的视图,该标签绑定到代码隐藏中的属性。我不知道如何访问它在 c# 中的位置然后更改它...帮助?
【问题讨论】: