https://github.com/guorg/gu.wpf.propertygrid
Small lib with styles for using ItemsControl as a property grid.
https://github.com/guorg/gu.wpf.propertygrid
Last synced: 5 days ago
JSON representation
Small lib with styles for using ItemsControl as a property grid.
- Host: GitHub
- URL: https://github.com/guorg/gu.wpf.propertygrid
- Owner: GuOrg
- License: mit
- Created: 2015-11-08T20:37:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T16:59:57.000Z (over 3 years ago)
- Last Synced: 2024-11-09T12:18:02.152Z (8 months ago)
- Language: C#
- Size: 1.15 MB
- Stars: 25
- Watchers: 7
- Forks: 9
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Gu.PropertyGrid
[](LICENSE.md)
[](https://ci.appveyor.com/project/JohanLarsson/gu-wpf-propertygrid/branch/master)
[](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid/)
[](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid.NumericSettingControls/)
[](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid.UnitSettingControls/)
[](https://gitter.im/JohanLarsson/Gu.Wpf.PropertyGrid?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Library with controls for making property grids
**Note:** Master branch & docs are not in sync with the nuget, sry about this.
## Sample
```xaml
```
Renders:

## AttachedProperties
### Grid
Made RowDefinitions & ColumnDefinitions attached properties so that the grid can be styled if many grids need the same rows and columns.##### Sample style
When used in a style either the style must have `x:Shared="False"` or the rows and columns can be declared with `x:Shared="False"` like this:
About [x:Shared](https://msdn.microsoft.com/en-us/library/aa970778(v=vs.110).aspx) in short it means that instances in resources are not reused.```
<Setter Property="propertyGrid:Grid.RowDefinitions" Value="{StaticResource RowDefinitions}" />
<Setter Property="propertyGrid:Grid.ColumnDefinitions" Value="{StaticResource ColumnDefinitions}" />```
##### Xaml sample
Wrote typeconverters so that they can be used in xaml like this:```
```
### OneWayToSource
Attached property that lets you bind readonly dependency properties `OneWayToSource`to datacontes.##### Sample
``````