Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

Archive for January 13th, 2010

Silverlight: Tooltip for each ListBox item

Posted by Steve Pietrek on January 13, 2010

Below is a code example of defining a tooltip for each ListBox item.

     <TextBlock Text="{Binding Summary}" Style="{StaticResource TooltipFont}"/>
   <HyperlinkButton NavigateUri="{Binding DisplayLinkUrl}" TargetName="_blank" BorderThickness="0">
    <TextBlock Text="{Binding Published, Converter={StaticResource ShortDateConverter}}" Style="{StaticResource TitleFont}"/>
   <TextBlock Text="{Binding TruncSummary}" Style="{StaticResource SummaryFont}"/>

Posted in Silverlight | Comments Off on Silverlight: Tooltip for each ListBox item