This project has moved. For the latest updates, please go here.

PropertyGrid Display doesn't work

Jun 4, 2014 at 10:10 PM
The next syntax is supported from framework 4, and is very useful for localization. I have tested It with PropertyGrid but doesn't work.

[Display(Name = "firstlayerexposition", ResourceType = typeof(Lingue.Strings))]

I'm doing something wrong?
Best regards
Developer
Jun 5, 2014 at 12:41 PM
Hi,

Try with
[DisplayName( "My Special Text" )]
Jun 5, 2014 at 12:47 PM
Yes DisplayName is working, but I want to use Display that is localizable and more flexible. Is it supported? Do you have made some tests? Also is possible to use
[Range(0, 25000)] I have made some tests and is not working too?
Developer
Jun 5, 2014 at 2:14 PM
Edited Jun 5, 2014 at 2:15 PM
Hi,

For now, in the Community version, only "DisplayName" attribute is available. In the Plus Version, there is a "ExtendedDisplayName" and a "LocalizedDisplayName" attribute that can be used with standard resx resource files to easilly localize data. You can find an example in the LiveExplorer App, available on this page : https://wpftoolkit.codeplex.com/

You can find the Plus version of the toolkit here : http://wpftoolkit.com/

The "Range" hasn't been implemented yet. Issue https://wpftoolkit.codeplex.com/workitem/21055 has been created.