开发者

XAML/Silverlight CheckBox ToolTip

Im trying to add a tooltip to a checkbox in XAML, however all i get is errors:

        <ToolTipService.ToolTip>
          <ToolTip x:Name="ToolTipDelete" Content="Delete" />
        </ToolTipService.ToolTip>

Anyone know how I might add this to a checkbox?

Sil开发者_如何学Pythonverlight 2.


Simple text:

<CheckBox ToolTip="Delete"/>

More control over display:

<CheckBox>
    <CheckBox.ToolTip>
        <TextBlock>Delete</TextBlock>
    </CheckBox.ToolTip>
</CheckBox>


Silverlight 4

It worked for me

<CheckBox>
     <ToolTipService.ToolTip>
          <TextBlock>Voluntary</TextBlock>
     </ToolTipService.ToolTip>
</CheckBox>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜