Is there anyway to change title of OpenFileDialog in Silverlight 3?

感情迁移 提交于 2019-12-07 16:30:57

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/2637135/is-there-anyway-to-change-title-of-openfiledialog-in-silverlight-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!