显示WPF内容上/外主窗口边界 [英] Displaying wpf content over/outside main window bounds

查看:221
本文介绍了显示WPF内容上/外主窗口边界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现的主要窗口,边界与控制重叠的效果。这是很难解释这一点的话这也是说不定为什么我很难找到关于如何做到这一点,或者如果它甚至可能的信息。

I am trying to achieve an effect of overlapping the main window boundary with a control. It's hard to explain this in words which is also maybe why I am having difficulty finding information on how to do this or if it is even possible.

下面是一个例子。我试图让(从设计师)的影响,这里的注意物浮在主窗口的边界之外

Below is an example of the effect I am trying to get (from the designer), where the "note" objects float outside the bounds of the main window.

不过,我在运行时得到的效果是这样的(如下图),该内部控制是由主窗口的边界裁剪。

However the effect I get at runtime is this (below), the inner controls are clipped by the boundary of the main window.

是否有人可以告诉我,如果这是可能的(或没有),如果是,也许,我怎么能得到这样的一些建议效果。

推荐答案

我不认为有一种方法来窗口的边界之外绘制。但是,你可以简单地创建注释控制的新窗口,并使其与你的主窗口。

I don't think there's a way to draw outside the bounds of a window. However, you could simply create a new window for the note control and align it to your main window.

这篇关于显示WPF内容上/外主窗口边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆