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

Feature/fluent progress bar #4074

Merged
merged 26 commits into from
Jun 30, 2020
Merged

Feature/fluent progress bar #4074

merged 26 commits into from
Jun 30, 2020

Conversation

danwalmsley
Copy link
Member

What does the pull request do?

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Fixed issues

@@ -20,17 +20,47 @@ public class ProgressBar : RangeBase
public static readonly StyledProperty<Orientation> OrientationProperty =
AvaloniaProperty.Register<ProgressBar, Orientation>(nameof(Orientation), Orientation.Horizontal);

private static readonly DirectProperty<ProgressBar, double> IndeterminateStartingOffsetProperty =
public static readonly DirectProperty<ProgressBar, double> ContainerAnimationStartPositionProperty =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those new props are from UWP's ProgressBarTemplateSettings, separated from ProgressBar class with point to hide template properties. Also they are get-only.

As for me It's fine to move them to ProgressBar.cs class, but should we?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry im not familiar in that part of UWP, but idk what's the point of that primitive though? If isnt gonna be used by anything else other than ProgressBar then i dont think it needs to be split from it..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is just to move template specific props out. It's common pattern for some controls in UWP.

@jmacato jmacato force-pushed the feature/fluent-progress-bar branch from 87e1add to ef2a96c Compare June 5, 2020 08:35
@danwalmsley danwalmsley marked this pull request as ready for review June 5, 2020 14:28
@danwalmsley
Copy link
Member Author

make template properties class and property private? @maxkatz6

@danwalmsley
Copy link
Member Author

@jmacato need you to fix the default theme progress bar... as this breaks the indeterminate version.

@danwalmsley danwalmsley merged commit 731ff97 into master Jun 30, 2020
@danwalmsley danwalmsley deleted the feature/fluent-progress-bar branch June 30, 2020 14:34
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

Successfully merging this pull request may close these issues.

3 participants