【问题标题】:Is it possible to animate the Grid.Column?是否可以为 Grid.Column 设置动画?
【发布时间】:2018-11-16 07:15:29
【问题描述】:

Сan 我为Grid.Column 属性设置动画?我需要在列中移动<Border>

<Storyboard>
       <DoubleAnimation Storyboard.TargetProperty="Grid.Column" To="4" Duration="0:0:0.3"/>  
</Storyboard>

【问题讨论】:

    标签: .net wpf xaml attached-properties


    【解决方案1】:

    由于Grid.Column 是附加属性,您必须在属性路径中添加括号。

    PropertyPath for Animation Targets

    <Int32Animation Storyboard.TargetProperty="(Grid.Column)" To="4" Duration="0:0:0.3"/>  
    

    【讨论】:

      猜你喜欢
      • 2015-10-22
      • 2012-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-05
      • 1970-01-01
      相关资源
      最近更新 更多