diff --git a/dev/CommonStyles/MediaTransportControls_themeresources.xaml b/dev/CommonStyles/MediaTransportControls_themeresources.xaml
index d27fc763e3..ba8230f70d 100644
--- a/dev/CommonStyles/MediaTransportControls_themeresources.xaml
+++ b/dev/CommonStyles/MediaTransportControls_themeresources.xaml
@@ -22,6 +22,8 @@
40
32
190
+ 296
+ 720
48,0,48,27
@@ -39,6 +41,8 @@
40
32
190
+ 296
+ 720
48,0,48,27
@@ -56,6 +60,8 @@
40
32
190
+ 296
+ 720
@@ -66,6 +72,8 @@
+
+
diff --git a/dev/CommonStyles/TestUI/MediaTransportControlsPage.xaml b/dev/CommonStyles/TestUI/MediaTransportControlsPage.xaml
index edea1a4cfd..2a44639eda 100644
--- a/dev/CommonStyles/TestUI/MediaTransportControlsPage.xaml
+++ b/dev/CommonStyles/TestUI/MediaTransportControlsPage.xaml
@@ -39,6 +39,7 @@
AreTransportControlsEnabled="True">
+ VerticalAlignment="Top"
+ HorizontalAlignment="Right"
+ Margin="{ThemeResource PersonPictureBadgeGridMargin}">
-
-
-
+
+
+
- 0.8
- 1.0
+ 1
+ 1
1
2
+ 0,-4,-4,0
-
-
-
+
+
+
- 0.8
- 1.0
+ 1
+ 1
1
2
+ 0,-4,-4,0
@@ -38,11 +40,12 @@
- 1.0
- 1.0
+ 1
+ 1
1
2
+ 0,-4,-4,0
-
\ No newline at end of file
+
diff --git a/dev/ProgressBar/ProgressBar.cpp b/dev/ProgressBar/ProgressBar.cpp
index f61e125809..fd6d9d240c 100644
--- a/dev/ProgressBar/ProgressBar.cpp
+++ b/dev/ProgressBar/ProgressBar.cpp
@@ -68,11 +68,13 @@ void ProgressBar::OnIsIndeterminatePropertyChanged(const winrt::DependencyProper
void ProgressBar::OnShowPausedPropertyChanged(const winrt::DependencyPropertyChangedEventArgs& args)
{
+ SetProgressBarIndicatorWidth();
UpdateStates();
}
void ProgressBar::OnShowErrorPropertyChanged(const winrt::DependencyPropertyChangedEventArgs& args)
{
+ SetProgressBarIndicatorWidth();
UpdateStates();
}
@@ -148,7 +150,15 @@ void ProgressBar::SetProgressBarIndicatorWidth()
if (auto&& indeterminateProgressBarIndicator2 = m_indeterminateProgressBarIndicator2.get())
{
- indeterminateProgressBarIndicator2.Width(progressBarWidth * 0.6); // 60% of ProgressBar Width
+ if (ShowPaused() || ShowError()) // If IndeterminatePaused or IndeterminateError
+ {
+ indeterminateProgressBarIndicator2.Width(progressBarWidth); // 100% of ProgressBar Width
+ }
+ else
+ {
+ indeterminateProgressBarIndicator2.Width(progressBarWidth * 0.6); // 60% of ProgressBar Width
+ }
+
}
}
else if (std::abs(maximum - minimum) > DBL_EPSILON)
@@ -194,7 +204,7 @@ void ProgressBar::UpdateWidthBasedTemplateSettings()
templateSettings->Container2AnimationStartPosition(indeterminateProgressBarIndicatorWidth2 * -1.5); // Position at -150%
templateSettings->Container2AnimationEndPosition(indeterminateProgressBarIndicatorWidth2 * 1.66); // Position at 166%
- templateSettings->ContainerAnimationMidPosition(width * 0.2);
+ templateSettings->ContainerAnimationMidPosition(0);
const auto rectangle = [width, height, padding = Padding()]()
{
diff --git a/dev/ProgressBar/ProgressBar.xaml b/dev/ProgressBar/ProgressBar.xaml
index ffe45e3426..a56d14372f 100644
--- a/dev/ProgressBar/ProgressBar.xaml
+++ b/dev/ProgressBar/ProgressBar.xaml
@@ -106,7 +106,6 @@
-
@@ -167,7 +166,7 @@
Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)">
-
+
-
+