非模态弹出窗口,不会淡出背景屏幕

发布于 2025-01-07 08:40:50 字数 154 浏览 9 评论 0原文

我想在 silverlight 中创建一个弹出对话框,其中包含输入框和“确定”和“取消”按钮。 popup 的特殊之处应该是它不应该淡出主背景屏幕。背景屏幕应可滚动且清晰可见。 目前我只在屏幕上使用 Javascript 提示框,但它的外观和感觉不太令人愉悦..我正在寻找具有更平滑外观的东西。

I'd like to create a popup dialog box in silverlight with a Input-box and a Ok and Cancel button. And the speciality of popup should be that It should not fade-out the master-background screen. And the backGround screen should be scrollable and visibile clearly.
Currently i am using just a Javascript Prompt box on my screen, but its look and feel is not so pleasing.. i am looking for something having a smoother look.

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

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

发布评论

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

评论(3

油饼 2025-01-14 08:40:50

使用 Silverlights ChildWindow 您将看到以下内容。不过可以禁用淡出。
ChildWindow

更新:
非模态重构

< img src="https://i.sstatic.net/kooC5.png" alt="非模态子对话框">

Using Silverlights ChildWindow you'll get a folowing look . Fading out can be disabled though.
ChildWindow

UPDATE:
Non modal refactoring

Non modal child dialog

情释 2025-01-14 08:40:50

在 Silverlight 中有一个 ChildWindow - 可以用作 PopUp 的控件。 ChildWindow 具有指定 不透明度背景覆盖层,以便您可以定义背景屏幕是否可见。

In Silverlight there is a ChildWindow-Control that you can use as PopUp. The ChildWindow has properties to specify the Opacity and the Background of the Overlay, so that you can define if the Background screen is visible.

儭儭莪哋寶赑 2025-01-14 08:40:50

您可以使用 ChildWindow 控件来执行此操作。
甚至您可以在父窗口上处理此弹出窗口的事件。

You can use the ChildWindow control to do this.
And even you can handle the events of this popup window on the parent window.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文