ToolTip

ToolTip for Button

      <Button>

            OK

            <Button.ToolTip>

                Clicking this will submit your request.

            </Button.ToolTip>

        </Button>

ToolTip for CheckBox

   <CheckBox>

            CheckBox

            <CheckBox.ToolTip>

                <StackPanel>

                    <Label FontWeight="Bold" Background="Blue" Foreground="White">

                    </Label>

                    <TextBlock Padding="10" TextWrapping="WrapWithOverflow" Width="200">

                            CheckBox is a familiar control.But in WPF,it's not much more than a ToggleButton style differently!

                      </TextBlock>

                    <Line Stroke="Black" StrokeThickness="1" X2="200" />

                    <StackPanel Orientation="Horizontal">

                        <Label FontWeight="Bold">

                            Press F1 for more help.

                        </Label>

                    </StackPanel>

                 </StackPanel>

            </CheckBox.ToolTip>

        </CheckBox>

原文地址:https://www.cnblogs.com/quietwalk/p/2264428.html