Nov 16

Silverlight offers a class called “ToolTipService” which can be used to display tooltips for Silverlight controls. This class can be attached to most of the UI elements in Silverlight to display tooltips.

The below sample code shows how to display a simple text tooltip for a Button control:

    <Grid x:Name="LayoutRoot" Background="White">

        <Button Width="80" Height="40" Content="My Button">

            <ToolTipService.ToolTip>

                <ToolTip Content="This is tool tip for Button"></ToolTip>

            </ToolTipService.ToolTip>

        </Button>

    </Grid>

And the result

Install Microsoft Silverlight


Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter

Related Posts:

  1. Multi Page Silverlight Application
  2. Silverlight (Layout Management)
  3. Silverlight (Creating Hello World)
  4. Silverlight (Get Started)
  5. Curiculum Silverlight

Leave a Reply