无论如何可以更改 Silverlight 3 中 OpenFileDialog 的标题吗?

发布于 2024-08-29 00:57:16 字数 347 浏览 5 评论 0原文

我在 Silverlight 3 应用程序中使用 OpenFileDialog(示例代码如下)。

        OpenFileDialog dialog = new OpenFileDialog();
        dialog.Multiselect = false;            
        dialog.Filter = "XML Schemas (*.xsd)|*.xsd";
        dialog.ShowDialog();

令我惊讶的是,没有像“标题”这样的属性来定义对话框的标题。所以我想知道是否有一种解决方法允许为此对话框设置自定义标题。

提前致谢。

I'm using OpenFileDialog in a Silverlight 3 application (sample code below).

        OpenFileDialog dialog = new OpenFileDialog();
        dialog.Multiselect = false;            
        dialog.Filter = "XML Schemas (*.xsd)|*.xsd";
        dialog.ShowDialog();

It was a surprise to me that there's no such property like 'Title' to define Title of the dialog. So I wonder if there's a workaround allowing to set custom title for this dialog.

Thanks in advance.

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

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

发布评论

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

评论(1

就像说晚安 2024-09-05 00:57:16

不,没有解决办法(在 SL4 中也是如此)。

微软似乎已经采取了一种方法(我认为这是相当明智的),将此类敏感事物(它允许访问主机系统)的 API 保持在最低限度。

看起来,在受控范围内,SL 团队会在仔细检查后有需求时放宽其中一些限制。

No there is no work around (in SL4 either).

Microsoft seem to have taken the approach (one that I think is quite sensible) of keeping APIs to this sort of sensitve thing (it allows access to the host system) to barest minimum.

It would seem that within controlled limits the SL Team will relax some of these limitations after careful examination when there is a demand.

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