Mega Code Archive

 
Categories / C# / WPF
 

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>