Posted 8 years ago by Todd Haehn
Version: 16.1.0201
Avatar

I am evaluating the Syntax Editor for XML data.  I have the Syntax Editor control in my view bound to my viewmodel property and the data is loaded correctly, but changes are not pushed back to the viewmodel.

            <syntaxeditor:SyntaxEditor 
                Grid.Row="1"
                Text="{Binding Request, Mode=TwoWay}">
                <syntaxeditor:EditorDocument xml:space="preserve">
							<syntaxeditor:EditorDocument.Language>
								<syntaxeditor:XmlSyntaxLanguage />
							</syntaxeditor:EditorDocument.Language>
						</syntaxeditor:EditorDocument>
            </syntaxeditor:SyntaxEditor>

 The viewmodel property 

        private string request;
        public string Request
        {
            get { return request; }
            set
            {
                request = value;
                NotifyOfPropertyChange(() => Request);
            }
        }

 Is TwoWay binding not supported?

Comments (1)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Todd,

Data binding is supported but it's not enabled by default for performance reasons.  Please see the "SyntaxEditor / User Interface Features / Input/Output Features / Data Binding" topic in the documentation that comes with the product for more information on why, and how to enable it.


Actipro Software Support

The latest build of this product (v18.1 build 0233) was released 4 years ago, which was after the last post in this thread.