Tooltips are typically those yellowish (or another color, depending on the Windows theme and user customization) pop ups that show up when the mouse pointer hovers over something important within the UI, providing some extra information relevant to that something. WPF makes it easy to create tooltips, either standard ones, or custom.
Make sure Visual Studio is up and running.
How to do it...
- Create a new WPF application named
MainWindow.xaml. Add two rows to the existing
<Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions>
- Add a
Grid, with two buttons in it:
<ToolBar> <Button Content="Copy" FontSize="16" Margin="4" Padding="4" ...