c# - How to make tooltip on hovering mouse over a button -


i c# silverlight(5) beginner , not bit know how make tool tip. in fact couldnt find option in toolbox tool tip.

what have show tooltip when mouse hover button. suppose if have button :

<button content="{binding path=id}"         command="{binding datacontext.showpopupcommand,                    relativesource={relativesource ancestortype=data:datagrid}}"/> 

now how create tooltip on button in viewmodel.cs class ?

could please give me guidance on how create tooltip in c# silverlight application using mvvm approach. piece of code appreciated. great help. thanks.

<button     tooltipservice.tooltip="tooltip based on mouse."     tooltipservice.placement="mouse"/> 

if need display frameworkelements (and not text) can set tooltip this:

<button>     <tooltipservice.tooltip>         <border background="pink">             <stackpanel>                 <image .../>                 <textblock .../>             </stackpanel>         </border>     </tooltipservice.tooltip> </button> 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -