浏览代码

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

Dan Walmsley 5 年之前
父节点
当前提交
4053a144bd
共有 1 个文件被更改,包括 4 次插入24 次删除
  1. 4 24
      src/Avalonia.Themes.Fluent/ProgressBar.xaml

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

@@ -142,35 +142,15 @@
     </Style.Animations>
     </Style.Animations>
   </Style>
   </Style>
   <Style Selector="ProgressBar:horizontal /template/ Border#IndeterminateProgressBarIndicator">
   <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>
   <Style Selector="ProgressBar:horizontal /template/ Border#IndeterminateProgressBarIndicator2">
   <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>
   <Style Selector="ProgressBar:vertical /template/ Border#IndeterminateProgressBarIndicator">
   <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>
   <Style Selector="ProgressBar:vertical /template/ Border#IndeterminateProgressBarIndicator2">
   <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>
   </Style>
 </Styles>
 </Styles>