Mega Code Archive

 
Categories / C# / WPF
 

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>