Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertyGrid: Hide search bar #817

Closed
wants to merge 9 commits into from

Conversation

SamirKharchi
Copy link

This Introduces a dependency property ShowSearchBar in order to hide the search bar.
The search bar XAML mark up has been updated to adjust the visibility accordingly.

Furthermore, multibinding is used to collapse the dockpanel visbility if the search bar and the sort buttons are both hidden.

To support that the BooleanArr2VisibilityConverter has been extented to optionally return a visible state if any of the bindings are visible (instead of all). For that the ConverterParameter can pass "UseAny"

Only show sort buttons, i.e. ShowSearchBar="False" ShowSortButton="True"
hideSearchBar

Collapsed Dock Panel if all hidden, i.e. ShowSearchBar="False" ShowSortButton="False"
collapsedDockPanel

SamXion and others added 6 commits May 10, 2021 08:49
Types which do not have a known type editor are browsed and flattened into the highest level as if their properties belong in the class that is currently handled by the PropertyGrid.
Furthermore some flatting options are available to decide in which category to place the flattened properties and how to name that category.
While the flattening is off by default to keep the default behavior, the demo has been extented to do apply flattening.
Introduces a dependency property ShowSearchBar in order to hide the search bar.
The search bar XAML mark up has been updated to adjust the visibility accordingly.

Furthermore, multibinding is used to collapse the dockpanel visbility if the search bar and the sort buttons are both hidden.

To support that the BooleanArr2VisibilityConverter has been extented to optionally return a visible state if any of the bindings are visible (instead of all).
For that the ConverterParameter can be set to 'UseAny'.
…earch bar.

The search bar XAML mark up has been updated to adjust the visibility accordingly.

Furthermore, multibinding is used to collapse the dockpanel visbility if the search bar and the sort buttons are both hidden.

To support that the BooleanArr2VisibilityConverter has been extented to optionally return a visible state if any of the bindings are visible (instead of all).
For that the ConverterParameter can be set to 'UseAny'.
@SamirKharchi SamirKharchi changed the title Hide search bar PropertyGrid: Hide search bar May 10, 2021
@SamirKharchi
Copy link
Author

Due to #892 this PR can be neglected (the linked PR contains all the code here but more up-to-date). So I will close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants