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>

 

 

posted @ 2011-11-26 17:01  quietwalk  阅读(259)  评论(0编辑  收藏  举报