wpftoolkit icon indicating copy to clipboard operation
wpftoolkit copied to clipboard

Can't copy property value in ReadOnly PropertyGrid

Open xceedsoftware opened this issue 8 years ago • 7 comments

omsed[CodePlex]
In a ReadOnly PropertyGrid, you can't copy property values using context menu or ctrl+c.

xceedsoftware avatar Jul 13 '17 12:07 xceedsoftware

BoucherS[CodePlex]
Hi,

This will be fixed in v3.4.

―――― Get more controls, features, updates and technical support with Xceed Toolkit Plus for WPF

xceedsoftware avatar Jul 13 '17 12:07 xceedsoftware

@xceedsoftware Hi,is this copy function implemented please? Why didn't I see it in version 3.7?

XzMitsui avatar Apr 28 '19 02:04 XzMitsui

Hi, There is no copy function. You can use Ctrl-C ou the context Menu in order to copy the property values from a propertyGrid.


Get more controls, features, updates and technical support with Xceed Toolkit Plus for WPF

XceedBoucherS avatar Jun 12 '19 11:06 XceedBoucherS

@XceedBoucherS Hi,but when the control is read-only, the control is disabled, and the context menu cannot be used at this time.

XzMitsui avatar Jun 13 '19 03:06 XzMitsui

If you have a TextBox as PropertyItem editor in the PropertyGrid, you can select the text in v3.7, and use the mouse right click in order to copy(or do a Ctrl + C).

XceedBoucherS avatar Aug 27 '19 15:08 XceedBoucherS

Hi,

I think this problem is not to fixed in v4.01. I could not select the value item (here, hello). image

        private string _stringValue = "hello";
        [ReadOnly(true)]
        public string value
        {
            get { return _stringValue; }
            set { _stringValue = value; }
        }

please tell me the latest status ..

kento1109 avatar Oct 29 '20 14:10 kento1109

Hi, In v4.0.1, if the PropertyGrid has its IsReadOnly property set to true, then yes, you can copy a PropertyItem's value. But if you have a propertyItem with the ReadOnly attribute set to true, than this is something different. This thread is focusing on ReadOnly PropertyGrid.

I'll try to have a look, but a readonly PropertyItem is currently using a TextBlock (no focus possible to select text). Thanks.

XceedBoucherS avatar Nov 02 '20 21:11 XceedBoucherS