提示 ToolTip

 <StackPanel>
        <Button Content="按鈕1" ToolTip="這是個按鈕1" HorizontalAlignment="Center" Margin="0,10,0,0"/>
        <Button Content="按鈕2"  HorizontalAlignment="Center" Margin="0,10,0,0">
            <Button.ToolTip>
                <ToolTip Background="Yellow">
                    <StackPanel>
                        <TextBlock Text="這是個按鈕2"/>
                        <Image Source="C:/Users/Jv/Desktop/lena512.tiff" Width="50" Height="50"/>
                    </StackPanel>
                </ToolTip>
            </Button.ToolTip>
        </Button>
    </StackPanel>
相關文章
相關標籤/搜索