Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 4 hours ago
JSON representation

Small lib with styles for using ItemsControl as a property grid.

Awesome Lists containing this project

README

        

# Gu.PropertyGrid

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)
[![Build status](https://ci.appveyor.com/api/projects/status/vhg6ru7ennq82ek7/branch/master?svg=true)](https://ci.appveyor.com/project/JohanLarsson/gu-wpf-propertygrid/branch/master)
[![NuGet](https://img.shields.io/nuget/v/Gu.Wpf.PropertyGrid.svg)](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid/)
[![NuGet](https://img.shields.io/nuget/v/Gu.Wpf.PropertyGrid.NumericSettingControls.svg)](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid.NumericSettingControls/)
[![NuGet](https://img.shields.io/nuget/v/Gu.Wpf.PropertyGrid.UnitSettingControls.svg)](https://www.nuget.org/packages/Gu.Wpf.PropertyGrid.UnitSettingControls/)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](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:

![Render](http://i.stack.imgur.com/DkWs1.gif)

## 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
```

```