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

<ui:window> and <ui:progressbar> related problems #319

Open
LHTXQ opened this issue Aug 1, 2022 · 1 comment
Open

<ui:window> and <ui:progressbar> related problems #319

LHTXQ opened this issue Aug 1, 2022 · 1 comment
Assignees
Labels
bug Something isn't working controls Changes to the appearance or logic of custom controls. help_wanted Extra attention is needed styles Topic is related to styles

Comments

@LHTXQ
Copy link
Contributor

LHTXQ commented Aug 1, 2022

Describe the bug
A.
When the app is launched in the maximized state, it takes up the entire screen, not just the workarea.
When restore the window after start in the maximized state, its height and width are not the specified values.

B.
When the inside of the progress bar is filled with color, the ends are flat, not circular.

To Reproduce
Steps to reproduce the behavior:
A.
1. Create an app with:

<ui:window
Height="{Binding Source={x:Static local:Settings.Default}, Path=WindowHeight, Mode=TwoWay}" 
Width="{Binding Source={x:Static local:Settings.Default}, Path=WindowWidth, Mode=TwoWay}" 
Left="{Binding Source={x:Static local:Settings.Default}, Path=WindowLeft, Mode=TwoWay}"
Top="{Binding Source={x:Static local:Settings.Default}, Path=WindowTop, Mode=TwoWay}"
WindowState="{Binding Source={x:Static local:Settings.Default}, Path=WindowState, Mode=TwoWay}"
 ...........
 >
  2. Maximize the app and restart it.

B. Create an app with progress bar and open it.

Expected behavior
A. Behave as Edge dose.

B. When the inside of the progress bar is filled with color, the ends are circular.

Screenshots
B. The left end is flat(the right end as well):
image

Desktop (please complete the following information):

  • .NET: [net 6.0 - windows 11]
  • Version: [2.0.2]
@LHTXQ LHTXQ added the bug Something isn't working label Aug 1, 2022
@pomianowski pomianowski added help_wanted Extra attention is needed controls Changes to the appearance or logic of custom controls. styles Topic is related to styles labels Aug 15, 2022
@chucker
Copy link
Contributor

chucker commented Dec 30, 2022

@LHTXQ is the progress bar indeterminate?

For determinate progress bars, I cannot reproduce the issue.

image

But for indeterminate progress bars, the beginning and end is indeed wrong:

image

And:

image

One possible fix might be to give the Border a dynamic width so that the CornerRadius has an effect while it's partially slid outside the window. I'm guessing we need a custom control to achieve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls Changes to the appearance or logic of custom controls. help_wanted Extra attention is needed styles Topic is related to styles
Projects
None yet
Development

No branches or pull requests

3 participants