1
我有以下規則定義:PropertyGrid中ValueEditor一個文件名
<Rule ...>
<... />
<StringProperty Subtype="file" ...>
<StringProperty.ValueEditors>
<ValueEditor EditorType="DefaultStringPropertyEditor" DisplayName="<Edit...>"/>
<ValueEditor EditorType="DefaultFilePropertyEditor" DisplayName="<Browse...>"/>
</StringProperty.ValueEditors>
</StringProperty>
<... />
</Rule>
它添加了「<編輯... >」和「<瀏覽... >」編輯屬性選項,但當我需要讓用戶選擇一個* .txt文件時,瀏覽對話框會詢問* .exe文件。對話框中有一個組合框,允許選擇「所有文件。」,但實際上這不是一個選項。
我試圖找到一個解決方案,但這個可擴展性位似乎沒有很好的記錄。
這本來是整整一年,因爲我的職務,如果我發現這個明天:) –