Complex ToolTip : ToolTip « Windows Presentation Foundation « C# / C Sharp






Complex ToolTip

Complex ToolTip
      
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  Title="About WPF" 
  Background="OrangeRed">
        <Canvas>
        <CheckBox>
          CheckBox
          <CheckBox.ToolTip>
            <StackPanel>
              <Label FontWeight="Bold" Background="Blue" Foreground="White">
                The CheckBox
              </Label>
              <TextBlock Padding="10" TextWrapping="WrapWithOverflow" Width="200">
                this is a test
              </TextBlock>
              <Line Stroke="Black" StrokeThickness="1" X2="200"/>
              <StackPanel Orientation="Horizontal">
                <Image Margin="2" Source="help.png"/>
                <Label FontWeight="Bold">Press F1 for more help.</Label>
              </StackPanel>
            </StackPanel>
          </CheckBox.ToolTip>
        </CheckBox>
        </Canvas>

</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.ToolTip with ImageToolTip with Image
6.ToolTipService.Placement="Bottom"ToolTipService.Placement=
7.ToolTip with List itemsToolTip with List items
8.A Tool Tip on a Disabled ControlA Tool Tip on a Disabled Control
9.Disabled Button with ToolTipServiceDisabled Button with ToolTipService
10.Control the Display Duration and Position of a Tool TipControl the Display Duration and Position of a Tool Tip
11.Set ToolTip Placement, ShowDuration, VerticalOffsetSet ToolTip Placement, ShowDuration, VerticalOffset
12.Set ToolTipService.Placement="Center"Set ToolTipService.Placement=
13.Set drop shadow for a ToolTipSet drop shadow for a ToolTip
14.Add Image to ToolTipAdd Image to ToolTip
15.Set border for ToolTip by using ControlTemplateSet border for ToolTip by using ControlTemplate
16.ToolTip With BindingToolTip With Binding