icsharpcode / WpfDesigner

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

How can users set the Text/Content property to {Binding xxx} in the propertyGrid? #111

Closed hjqcan closed 5 months ago

hjqcan commented 5 months ago

with the code below: internal XamlTextValue(XamlDocument document, string textValue) { this.document = document; if (textValue.StartsWith("{")) textValue = "{}" + textValue; this.textValue = textValue; }

if user set {Binding xxx} to Text/Content in the properGrid,it will change to {}{Binding xxx} my question is:how can user set property Text="{Binding xxx}" ?

jogibear9988 commented 5 months ago

right click property -> create binding