propertygrid

Is there a better StringCollection editor for use in PropertyGrids?

做~自己de王妃 提交于 2020-01-02 05:29:28
问题 I'm making heavy use of PropertySheets in my application framework's configuration editor. I like them a lot because it's pretty easy to work with them (once you learn how) and make the editing bulletproof. One of the things that I'm storing in my configuration are Python scripts. It's possible to edit a Python script in a StringCollection editor, which is what I've been using, but there's a long distance between "possible" and "useable." I'd like to have an editor that actually supported

Disable auto sorting on property grid in ExtJS

浪子不回头ぞ 提交于 2020-01-02 04:43:10
问题 I am dealing with property grid. I want to prevent auto sorting of column names for property grid. here is my code. Bold highlighted code is my source for property grid and its order is just like I want to see. But Ext is auto sorting column orders alphabeticly. How can I prevent that. Thanks for any suggestion. Ext.ns('Application.propertygrid'); Application.propertygrid.FileDetail = Ext.extend(Ext.grid.PropertyGrid, { title: 'File Detail', height: 200, border: false, stripeRows: true, flex:

How do you control what is visible in a property grid at runtime?

可紊 提交于 2020-01-01 02:40:17
问题 I have a property grid displaying a list, for example of a class Person [TypeConverter(typeof(ExpandableObjectConverter))] public class Person { public bool ShowHidden { get; set; } public string Name { get; set; } //[Browsable(false)] public string Hidden { get; set; } public override string ToString() { return string.Format("Person({0})", Name); } } The question is how do I control the Browsable() attribute at runtime such that when ShowHidden = false the Hidden line (highlighted yellow

PropertyGrid Browsable not found for entity framework created property, how to find it?

耗尽温柔 提交于 2019-12-28 04:28:09
问题 Trying to remove or place items on a property grid by changing the Browsable attribute. But unless browsable is set on object creation my code to change Browsable doesn't work. Now I can manually add browsable, but when I make a change to my entity (still developing project so lots of changes to entity) any additional attributes I add go away. I attempted to set [Browsable(true)] two ways other ways: http://ardalis.com/adding-attributes-to-generated-classes and http://social.msdn.microsoft

Telerik RadPropertyGrid Content of CollectionEditorPicker

泄露秘密 提交于 2019-12-25 08:11:41
问题 as the topic suggests I wan't to modify the Content of the CollectionEditorPicker. This control is used to open the floating Window for the List of nested Properties. Unfortunally the RadPropertyGrid don't show any Information about the collection in the Field. How can I set some value in there? For example a placeholder like "Click here to open the collection" or "xx Items" or "Item 1, Item 2, Item 3..." so see some preview or Information about the field. I've tried it with a template

How to relabel ellipsis button for modal UITypeEditor in PropertyGrid?

依然范特西╮ 提交于 2019-12-25 01:44:57
问题 I have a Windows forms PropertyGrid and a customer UITypeEditor per http://msdn.microsoft.com/en-us/library/system.drawing.design.uitypeeditoreditstyle.aspx Displays an ellipsis (...) button to start a modal dialog box, which requires user input before continuing a program, or a modeless dialog box, which stays on the screen and is available for use at any time but permits other user activities. That ellipsis button is pretty small. How can I relabel it with a more helpful label? 回答1: Long

How WinForms PropertyGrid finds custom type converters in external libraries?

核能气质少年 提交于 2019-12-25 01:13:44
问题 We have a custom control. Some properties of this control use custom type converters and UI type editors, and they are implemented in a separate design-time DLL. These type converters are defined using the string syntax of the TypeConverter and Editor attributes, for example: [TypeConverter("<full class name>, <library name>, Version=<version>")] public CustomType Property1 { // property implementation } When we display the properties of our custom control in the standard PropertyGrid control

Help, i can't get my properties into the designer PropertyGrid

霸气de小男生 提交于 2019-12-24 19:26:03
问题 What is wrong with this? The property LeftImage doesn't show up in the PropertyGrid (WinForms .NET 3.5) private Image _LeftImage; /// <summary> /// Sets the small image appearing to the left of the trackbar /// </summary> [ Description("The small image appearing to the left of the trackbar"), Category("Appearance"), EditorAttribute(typeof(System.Drawing.Design.ImageEditor), typeof(System.Drawing.Design.UITypeEditor)), DefaultValueAttribute(typeof(Image),"null"), Browsable(true),

WPF PropertyGrid Problem

 ̄綄美尐妖づ 提交于 2019-12-24 19:10:52
问题 I am trying to create a WPF based PropertyGrid. Recently i tried wpg.codeplex.com project, but i had some problems with this control. Now, i am trying to develop http://blog.joachim.at/?p=36 this project. I successfully added Enum Values, support but i have got problems with collections. For example my custom object has a property that name is City and type is Guid. I want, users can select City from combobox. I was fighting with TypeConverts, IValueConverts, and etc.. How can i solve this?

Avoid exceptions from PropertyGrid

 ̄綄美尐妖づ 提交于 2019-12-24 12:51:42
问题 In my sample I have used a PropertyGrid control and fetched my all properties and values. When I change one property to an invalid value, like "123456789008765" for an integer field, it throws the following error: I need to avoid this error, and if the given value is invalid I need to assign a default value (in this case 13, 13 ). How can I do this? 回答1: Short Answer The PropertyGrid uses the TypeConverter to convert a string to your property value and convert your property value to a string