加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Balloon Popup WPF

发布时间:2020-12-15 17:29:08 所属栏目:百科 来源:网络整理
导读:我需要显示一个气球弹出窗口. WPF中是否有对这种工作的控制? 类似于以下内容: BalloonPopup StackPanel Button/ . . . /StackPanel/BalloonPopup 这可能是结果: 解决方法 你想做一个 tooltip. wpf.200things上有很棒的写作. 从这个article.你基本上将如下
我需要显示一个气球弹出窗口. WPF中是否有对这种工作的控制?
类似于以下内容:

<BalloonPopup>
   <StackPanel>
      <Button/>
      . . .
   </StackPanel>
</BalloonPopup>

这可能是结果:

解决方法

你想做一个 tooltip. wpf.200things上有很棒的写作.

从这个article.你基本上将如下设置工具提示的样式

<TextBox Text="Now is the winter of our discontent etc"
    Width="100" Margin="10">
    <TextBox.ToolTip>
        <ToolTip DataContext="{Binding Path=PlacementTarget,RelativeSource={x:Static RelativeSource.Self}}">
            <StackPanel>
                <Label FontWeight="Bold" Content="Full Text"/>
                <Label Content="{Binding Text}"/>
                <Label Content="--Gloster,in Richard III (Act I,Scene I)"/>
            </StackPanel>
        </ToolTip>
    </TextBox.ToolTip> </TextBox>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读