是否可以使用visualstatemanager将控件的宽度绑定到另一个控件的宽度?
答案 0 :(得分:1)
您可以使用ObjectAnimationUsingKeyframes在VSM中设置绑定。类似的东西:
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SomeControl" Storyboard.TargetProperty="(FrameworkElement.Width)" Duration="Forever" >
<DiscreteObjectKeyFrame KeyTime="0:0:0" >
<DiscreteObjectKeyFrame.Value>
<Binding ... />
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>