views:

45

answers:

1

Hi, 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?

A: 

Once before I also, ran into the same problem. So, I left the VSM away. I made the ToolTip as Resource and applied it for the control. Using the internal state change properties I updated the tooltip value using a converter.

HTH.

Avatar
yes but how...do you have code? Your answer is a little too simple.
WmasterJ