无论如何可以更改 Silverlight 3 中 OpenFileDialog 的标题吗?
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,没有解决办法(在 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.