WORKING WITH  TOOLTIP CONTROL IN SILVERLIGHT REMYA N SANKAR
ToolTip Service  <ul><li>To display a tooltip for a control, the ToolTipService class must be used  </li></ul><ul><li>The ...
ToolTip Service  <ul><li>The following code snippet creates a  ToolTipService.ToolTip  for a control. </li></ul><ul><li>< ...
Display an image inside a tooltip <ul><li>This sample code shows how to display an image within a tooltip in Silverlight: ...
Multiple Items in ToolTip <ul><li>The ToolTip content can be any control and multiple controls. The code below shows a Too...
Multiple Items in ToolTip <ul><li><!-- Create a tooltip by using the ToolTipService --> </li></ul><ul><li><ToolTipService....
 
THANK YOU
Upcoming SlideShare
Loading in...5
×

creating tooltip using silverlight2.0

632

Published on

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • I liked the images used in this slide. Cheers!

    http://www.bathroomsinkconsoles.net/
    http://www.bathroomsinkconsoles.net/category/bathroom-sink-consoles/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
632
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

creating tooltip using silverlight2.0

  1. 1. WORKING WITH TOOLTIP CONTROL IN SILVERLIGHT REMYA N SANKAR
  2. 2. ToolTip Service <ul><li>To display a tooltip for a control, the ToolTipService class must be used </li></ul><ul><li>The SetToolTip and GetToolTip static methods are used to set and get the tooltip of a control. </li></ul>
  3. 3. ToolTip Service <ul><li>The following code snippet creates a ToolTipService.ToolTip for a control. </li></ul><ul><li>< ToolTipService.ToolTip > </li></ul><ul><li><ToolTip Content=&quot;Hello! I am a ToolTip.&quot; </li></ul><ul><li>HorizontalOffset=&quot;10&quot; VerticalOffset=&quot;20&quot;/> </li></ul><ul><li></ToolTipService.ToolTip> </li></ul>
  4. 4. Display an image inside a tooltip <ul><li>This sample code shows how to display an image within a tooltip in Silverlight: </li></ul><ul><li>< TextBox Width=&quot;60&quot; Height=&quot;20&quot; Text=&quot;My Text&quot;> <ToolTipService.ToolTip> </li></ul><ul><li><Image Source= &quot;http://www.dotnetspider.com/images/spiderlogo.jpg&quot; ></Image> </ToolTipService.ToolTip> </TextBox> </li></ul>
  5. 5. Multiple Items in ToolTip <ul><li>The ToolTip content can be any control and multiple controls. The code below shows a ToolTip with an image and text in it. </li></ul>
  6. 6. Multiple Items in ToolTip <ul><li><!-- Create a tooltip by using the ToolTipService --> </li></ul><ul><li><ToolTipService.ToolTip > </li></ul><ul><li><ToolTip HorizontalOffset=&quot;0&quot; VerticalOffset=&quot;0&quot;> </li></ul><ul><li><!-- Add a StackPanel to the tooltip content --> </li></ul><ul><li><StackPanel Width=&quot;250&quot; Height=&quot;150&quot;> </li></ul><ul><li><!-- Add an image --> </li></ul><ul><li><StackPanel.Background> </li></ul><ul><li><ImageBrush ImageSource=&quot;Garden.jpg&quot; </li></ul><ul><li>Opacity=&quot;0.4&quot;/> </li></ul><ul><li></StackPanel.Background> </li></ul><ul><li><!-- Add a text block --> </li></ul><ul><li><TextBlock > </li></ul><ul><li><Run Text=&quot;This is a tooltip with an image and text&quot; </li></ul><ul><li>FontFamily=&quot;Georgia&quot; FontSize=&quot;14&quot; Foreground=&quot;Blue&quot;/> </li></ul><ul><li></TextBlock> </li></ul><ul><li></StackPanel> </li></ul><ul><li></ToolTip> </li></ul><ul><li></ToolTipService.ToolTip> </li></ul><ul><li></Button> </li></ul>
  7. 8. THANK YOU

×