ToolTip with Image : ToolTip « Windows Presentation Foundation « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Design Patterns
8.Development Class
9.Event
10.File Stream
11.Generics
12.GUI Windows Form
13.Language Basics
14.LINQ
15.Network
16.Office
17.Reflection
18.Regular Expressions
19.Security
20.Services Event
21.Thread
22.Web Services
23.Windows
24.Windows Presentation Foundation
25.XML
26.XML LINQ
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source
C# / C Sharp » Windows Presentation Foundation » ToolTipScreenshots 
ToolTip with Image
ToolTip with Image
     

<Window x:Class="ClassicControls.Tooltips"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Tooltips" Height="321" Width="301"   >
  <StackPanel Margin="5" ToolTip="StackPanel tooltip">
    <Button ToolTipService.InitialShowDelay="0" ToolTipService.BetweenShowDelay="5000">
      <Button.ToolTip>
        <ToolTip Background="#60AA4030" Foreground="White"
                 HasDropShadow="False" >
        <StackPanel>
          <TextBlock Margin="3" >Image and text</TextBlock>
          <Image Source="c:\image.jpg" Stretch="None" />
          <TextBlock Margin="3" >Image and text</TextBlock>          
        </StackPanel>
        </ToolTip>
        </Button.ToolTip>      
      <Button.Content>I have a fancy tooltip</Button.Content>
    </Button>      
  </StackPanel>
        
    
</Window>

   
    
    
    
    
  
Related examples in the same category
1.ToolTip for BorderToolTip for Border
2.Using ToolTip for TextBox with TextBox.ToolTip and ToolTip tagUsing ToolTip for TextBox with TextBox.ToolTip and ToolTip tag
3.Add ToolTip text to a TextBoxAdd ToolTip text to a TextBox
4.ToolTipService.InitialShowDelayToolTipService.InitialShowDelay
5.ToolTipService.Placement="Bottom"ToolTipService.Placement=
6.ToolTip with List itemsToolTip with List items
7.A Tool Tip on a Disabled ControlA Tool Tip on a Disabled Control
8.Disabled Button with ToolTipServiceDisabled Button with ToolTipService
9.Control the Display Duration and Position of a Tool TipControl the Display Duration and Position of a Tool Tip
10.Set ToolTip Placement, ShowDuration, VerticalOffsetSet ToolTip Placement, ShowDuration, VerticalOffset
11.Set ToolTipService.Placement="Center"Set ToolTipService.Placement=
12.Set drop shadow for a ToolTipSet drop shadow for a ToolTip
13.Add Image to ToolTipAdd Image to ToolTip
14.Set border for ToolTip by using ControlTemplateSet border for ToolTip by using ControlTemplate
15.Complex ToolTipComplex ToolTip
16.ToolTip With BindingToolTip With Binding
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.