Browse Source

remove un-needed $parent bindings causing bugs in progress bar.

Dan Walmsley 5 years ago
parent
commit
4053a144bd
1 changed files with 4 additions and 24 deletions
  1. 4 24
      src/Avalonia.Themes.Fluent/ProgressBar.xaml

+ 4 - 24
src/Avalonia.Themes.Fluent/ProgressBar.xaml

@@ -142,35 +142,15 @@
     </Style.Animations>
   </Style>
   <Style Selector="ProgressBar:horizontal /template/ Border#IndeterminateProgressBarIndicator">
-    <Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateProperties.ContainerWidth}" />
-    <Setter Property="RenderTransform">
-      <Setter.Value>
-        <TranslateTransform X="{Binding $parent[ProgressBar].TemplateProperties.ContainerAnimationStartPosition}" />
-      </Setter.Value>
-    </Setter>
+    <Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateProperties.ContainerWidth}" />    
   </Style>
   <Style Selector="ProgressBar:horizontal /template/ Border#IndeterminateProgressBarIndicator2">
-    <Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateProperties.Container2Width}" />
-    <Setter Property="RenderTransform">
-      <Setter.Value>
-        <TranslateTransform X="{Binding $parent[ProgressBar].TemplateProperties.Container2AnimationStartPosition}" />
-      </Setter.Value>
-    </Setter>
+    <Setter Property="Width" Value="{Binding $parent[ProgressBar].TemplateProperties.Container2Width}" />    
   </Style>
   <Style Selector="ProgressBar:vertical /template/ Border#IndeterminateProgressBarIndicator">
-    <Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateProperties.ContainerWidth}" />
-    <Setter Property="RenderTransform">
-      <Setter.Value>
-        <TranslateTransform Y="{Binding $parent[ProgressBar].TemplateProperties.ContainerAnimationStartPosition}" />
-      </Setter.Value>
-    </Setter>
+    <Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateProperties.ContainerWidth}" />    
   </Style>
   <Style Selector="ProgressBar:vertical /template/ Border#IndeterminateProgressBarIndicator2">
-    <Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateProperties.Container2Width}" />
-    <Setter Property="RenderTransform">
-      <Setter.Value>
-        <TranslateTransform Y="{Binding $parent[ProgressBar].TemplateProperties.Container2AnimationStartPosition}" />
-      </Setter.Value>
-    </Setter>
+    <Setter Property="Height" Value="{Binding $parent[ProgressBar].TemplateProperties.Container2Width}" />    
   </Style>
 </Styles>