0

i want to be able to change the tooltip on Checked and Unchecked, i tried:

    <VisualState x:Name="Checked">
      <Storyboard>
        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="ToolTipService.ToolTip" Storyboard.TargetName="btn">
          <DiscreteObjectKeyFrame KeyTime="0">
            <DiscreteObjectKeyFrame.Value>
              <System:String>Button is checked</System:String>
            </DiscreteObjectKeyFrame.Value>
          </DiscreteObjectKeyFrame>
        </ObjectAnimationUsingKeyFrames>
      </Storyboard>
    </VisualState>

but it doesnt seem to work, what am i doing wrong?

4

1 回答 1

0

之前我也遇到过同样的问题。所以,我离开了 VSM。我将工具提示作为资源并将其应用于控件。使用内部状态更改属性,我使用转换器更新了工具提示值。

HTH。

于 2010-09-01T17:51:31.430 回答