icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
958 stars 259 forks source link

If the property in the usercontrol is a Class type, in the saved XamlString, the property in the Class type attribute (Class type) will not be saved #104

Closed NiMuQiao closed 1 year ago

NiMuQiao commented 1 year ago

If the property in the usercontrol is a Class type, in the saved XamlString, the property in the Class type property (Class type) will not be saved。 image image image

jogibear9988 commented 1 year ago

How do you set the Properties?

NiMuQiao commented 1 year ago

image image I just set the value in my PropertyEditor

jogibear9988 commented 1 year ago

this will not work. You need to set the Properties of the DesignItem

The DesignItem is an Wrapper wich encapsules every WPfControl. So for example also Bindings or Staticresources could be reflected in the Designer

NiMuQiao commented 1 year ago

Could you please provide me with an example, thank you very much

jogibear9988 commented 1 year ago

Not really. Takes time and I don't know how you work with the designer in your code. Maybe when you create a sample wich shows your error and upload it I could help.

NiMuQiao commented 1 year ago

Ok,thans so much!!!