Silverlight - 当 ChildWindow 旋转时可能不旋转父窗口覆盖层吗?

发布于 2024-09-27 14:47:11 字数 135 浏览 0 评论 0原文

我有一个 ChildWindow,当我单击按钮时,它会旋转 180 度。 我还使用 ChildWindow.OverlayBrush 来调暗父窗口。 当然,当 ChildWindow 旋转时,它也会旋转。 无论如何,有没有办法使父窗口变暗而不随子窗口旋转?

I've got a ChildWindow that rotates 180 degrees when I click a button.
I'm also using a ChildWindow.OverlayBrush to dim out the parent window.
This of course rotates as well when the ChildWindow rotates.
Is there anyway to dim out the parent window without it rotating with the ChildWindow?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兔小萌 2024-10-04 14:47:11

我想到了 2 个选项:

  1. 您要么需要 OverlayBrush
    不在与您相同的元素下
    旋转(你可以旋转一个孩子吗
    而是在窗口内?)
  2. 或者,您需要旋转覆盖层
    直接反方向刷
    相同的动画,以便它取消
    提出议案。

2 options spring to mind:

  1. You either need the OverlayBrush to
    not be under the same element you
    rotate (can you rotate a child
    within the window instead?)
  2. Or, you need to rotate the overlay
    brush in the opposite direct in the
    same animation so that it cancels
    out the motion.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文