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

the style of PreviewSlider is unreasonable #900

Closed
BookerLiu opened this issue Jul 5, 2021 · 3 comments
Closed

the style of PreviewSlider is unreasonable #900

BookerLiu opened this issue Jul 5, 2021 · 3 comments

Comments

@BookerLiu
Copy link

BookerLiu commented Jul 5, 2021

Describe the bug
我在SimplePanel中使用HC控件, 页面样式在3.1中表现正常, 但是在3.2中全部混乱

To Reproduce

  1. SimplePanel 上部会有一大部分空白空间, 但我代码中的Margin="0,0,-40,-12"
  2. PreviewSlider 会显示被向下挤压,但鼠标在实际位置的时候才会显示PreviewSlider.PreviewContent

Expected behavior
希望3.2能够不改变3.1的样式(这可能本来就是个BUG)

Screenshots
3.1版本
Rhrqd1.png
3.2版本
RhDc4K.png

Environment (please complete the following information):

  • .net: [4.7.2]
  • IDE [vs2019]
  • Version [3.2.0]

Additional context

@NaBian
Copy link
Member

NaBian commented Jul 5, 2021

感谢您的反馈,如果能有简单的复现 demo 就更好啦,现在我们只能根据您的描述去猜,不利于复现问题。

@BookerLiu
Copy link
Author

BookerLiu commented Jul 5, 2021

感谢您的反馈,如果能有简单的复现 demo 就更好啦,现在我们只能根据您的描述去猜,不利于复现问题。

 <hc:SimplePanel Margin="50" HorizontalAlignment="Center" >
    <!--<StackPanel HorizontalAlignment="Center"  Margin="50">-->
                <hc:PreviewSlider Value="20"
                              Maximum="100"
                                  Width="200"
                              >
                    <hc:PreviewSlider.PreviewContent>
                        <Label Style="{StaticResource LabelPrimary}" Content="{Binding Path=(hc:PreviewSlider.PreviewPosition),RelativeSource={RelativeSource Self}}" ContentStringFormat="#0"/>
                    </hc:PreviewSlider.PreviewContent>
                </hc:PreviewSlider>
        <!--</StackPanel>-->
    </hc:SimplePanel>

@NaBian
您好, 经测试, 在3.2版本 SimplePannel 中使用 PreviewSlider,

  1. SimplePanel的高度会覆盖(?) PreviewSlider的默认高度, 必须手动设置PreviewSlider的高度才能生效;
  2. 将SimplePanel 改为 StackPanel,PreviewSlider默认高度生效

@NaBian
Copy link
Member

NaBian commented Jul 10, 2021

经测试,3.1 和 3.2 样式行为是一致的,故而此 issue 的标题不正确,应该修改为:PreviewSlider 样式不合理

@NaBian NaBian changed the title 3.1 升级 3.2 样式混乱 the style of PreviewSlider is unreasonable Jul 10, 2021
@NaBian NaBian closed this as completed in 18092f0 Jul 10, 2021
@NaBian NaBian reopened this Jul 22, 2021
@NaBian NaBian closed this as completed in b525a2f Jul 22, 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

2 participants