Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunningBlock 的两个bug:设置speed崩溃、控件整体尺寸变化时不会刷新滚动 #901

Closed
eijjxx opened this issue Jul 7, 2021 · 0 comments

Comments

@eijjxx
Copy link

eijjxx commented Jul 7, 2021

Describe the bug
1、当设置speed的时候,会弹出错误
2、在外框尺寸发生变化的时候不会UpdateContent

To Reproduce
Steps to reproduce the behavior:
1、代码:

<hc:RunningBlock
    Width="100"
    Margin="0,16,0,0"
    HorizontalAlignment="Left"
    AutoReverse="True"
    AutoRun="True"
    Content="test test test test test test test test test test"
    Runaway="False"
    Speed="200" />

当runaway为false的时候设置speed会崩溃,应该是UpdateContent的TimeSpan.FromSeconds((to-from)/Speed)这里to-from为负导致

2、window中只放置

<hc:RunningBlock
  Margin="0,16,0,0"
  HorizontalAlignment="Stretch"
  VerticalAlignment="Top"
  AutoReverse="True"
  AutoRun="True"
  Content="test test test test test test test test test test"
  Runaway="False" />

拖动缩放window的时候滚动状态不会改变
期望当autorun=True的时候,如果整体尺寸发生变化,也会刷新是否开始滚动
建议在RunningBlock的SizeChange中也添加UpdateContent

Environment (please complete the following information):

  • .net: [e.g. 4.5.2]
  • IDE [e.g. vs2019]
  • Version [e.g. 3.2.0]
@NaBian NaBian closed this as completed in 7af7d30 Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant