PropertyGrid: Hide search bar#817
Closed
SamirKharchi wants to merge 9 commits intoHandyOrg:masterfrom
Closed
Conversation
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'.
…yControl into Hide-SearchBar
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Introduces a dependency property
ShowSearchBarin 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
BooleanArr2VisibilityConverterhas 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"Collapsed Dock Panel if all hidden, i.e.

ShowSearchBar="False" ShowSortButton="False"