Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all:
I have created a custom control with new dependency property (TagToSet) of type MyTag(id, name, value).
After adding this control to my window design, and going to the properties to set the value of the new dependency property. Here I want to open a dialog to select the Tag that I want (like the case when the dependency property is collection).
note: the Tag property is not a collection, and the required dialog should connect to a WCF service to list the available tag.
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 17-Sep-14 3:37am    
Dependency property is just the property implemented using DependencyProperty mechanism. You can set it or read it in exact same way as any other property. What's the problem?
—SA
bshanwar 17-Sep-14 3:43am    
After designing the control, I want to add it to a new window, here I want to assign a value to the property that I had added. this value should be selected from a dialog connected to a WCF service Like in the images in this question
http://www.c-sharpcorner.com/Forums/Thread/268844/wpf-dependency-property-show-a-dialog-to-select-the-value.aspx
Sergey Alexandrovich Kryukov 17-Sep-14 3:55am    
Is it the System.Windows.Forms.ProperyGrid? The techniques are very different from WPF, and customization of this control is pretty tricky...
—SA
bshanwar 17-Sep-14 4:40am    
It is something like DialogPropertyValueEditor
Sergey Alexandrovich Kryukov 17-Sep-14 9:20am    
Ah, System.Activities.Presentation.PropertyEditing.DialogPropertyValueEditor...
So, what's the problem?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900