无论如何,是否可以在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.