通过点击 GotoTop 可以让 ScrollView 或带有 ScrollView 的控件滚动到顶部位置.
1 | public class GotoTop : Button |
属性
| 属性 | 描述 | 默认值 | 备注 |
|---|---|---|---|
| Target | ScrollView 或带有 ScrollView 的控件 |
||
| Animated | 是否使用动画 | true | |
| AnimationTime | 动画持续时间 | 0.2s | |
| HidingHeight | 当 ScrollView 滚动该高度后 GotoTop 会被隐藏 |
0 | |
| AutoHiding | 是否自动隐藏 | true |
案例
1 | <hc:SimplePanel Width="500" Height="400"> |
