question

ITFAdam-7180 avatar image
1 Vote"
ITFAdam-7180 asked ·

How to add features to the small square on the right side of the property value (in properties window)?

I'm working on a WPF application. On this application, I use custom MarkupExtension that I add to my WPF with a custom DialogPropertyValueEditor. My problem is that once I've added my MarkupExtension, I can't change it, the field is locked.

78164-image.png

I have to reset the property and then create a new one. This reset is done by clicking on the small square on the right side.
78214-capture-decran-2021-03-16-095007.png
(sorry, it's french version of VS)

I would like to know if it is possible to add or modify functionalities to the context menu of this small square.


windows-wpf
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ITFAdam-7180
Could you show the code for custom MarkupExtension and custom DialogPropertyValueEditor? Did you add MarkupExtension like other Controls in the XAML code? Do the blocked field in Visual studio Properties page?

0 Votes 0 ·

Code for MarkupExrension : http://pastebin.fr/87941
Code for DialogPropertyValueEditor : http://pastebin.fr/87942

My MarkupExtension isn't used like a control but like a property value of a control's properties. To add my MarkupExtension I use a window inspired by this documentation : https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/bb892994(v=vs.90)

0 Votes 0 ·

0 Answers