无论如何,是否可以在Silverlight 3中更改OpenFileDialog的标题? [英] Is there anyway to change title of OpenFileDialog in Silverlight 3?

查看:91
本文介绍了无论如何,是否可以在Silverlight 3中更改OpenFileDialog的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Silverlight 3应用程序中使用OpenFileDialog(下面的示例代码).

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.

提前谢谢.

推荐答案

在SL4中也没有解决方法.

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

Microsoft似乎采取了使API保持这种敏感的事情(它允许访问主机系统)的方法(我认为这是非常明智的).

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.

在有严格要求的情况下,后,SL小组似乎会在可控制的范围内放宽某些限制.

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

这篇关于无论如何,是否可以在Silverlight 3中更改OpenFileDialog的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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