简体   繁体   English

在Xceed WPF PropertyGrid中,如何使“搜索”和“排序”按钮不可见

[英]In Xceed WPF PropertyGrid how to make Search and Sort buttons invisible

I would like to make the Alphabetic Sort and Search bar invisible on the Xceed WPF PropertyGrid. 我想使Xceed WPF PropertyGrid上的字母排序和搜索栏不可见。 How would that be done? 怎么办? I have read through the list of object attributes for the PropertyGrid and did not see any property relating to the search button as a separate UI element within the PG. 我已经阅读了PropertyGrid的对象属性列表,并且没有看到与搜索按钮相关的任何属性作为PG中的单独UI元素。

您应该设置以下属性:

 <extToolkit:PropertyGrid ShowSearchBox="False" ShowSortOptions="False" />

Acutally, found it: 最终发现:

        PG.ShowSearchBox = false;
        PG.ShowSortOptions = false;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM