ToolTip for Border : ToolTip « Windows Presentation Foundation « C# / C Sharp






ToolTip for Border

ToolTip for Border
    
<Window x:Class="SimpleStyles.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="SimpleStyles"
  Background="#F8F8F8">
  <ScrollViewer>
    <WrapPanel>
      <HeaderedItemsControl Header="ToolTip">
        <StackPanel>
          <Border Margin="8" Background="#EEE" Width="150" Height="50"  CornerRadius="2">
            <Border.ToolTip>
              This is a test tooltip!  Woohoo!
            </Border.ToolTip>
            <TextBlock Foreground="#AAA" VerticalAlignment="Center" 
               HorizontalAlignment="Center">(Hover Over Me)</TextBlock>
          </Border>
        </StackPanel>
      </HeaderedItemsControl>
   
    </WrapPanel>
  </ScrollViewer>
</Window>

   
    
    
    
  








Related examples in the same category

1.Using ToolTip for TextBox with TextBox.ToolTip and ToolTip tagUsing ToolTip for TextBox with TextBox.ToolTip and ToolTip tag
2.Add ToolTip text to a TextBoxAdd ToolTip text to a TextBox
3.ToolTipService.InitialShowDelayToolTipService.InitialShowDelay
4.ToolTip with ImageToolTip with Image
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