Posted 3 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 3 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 (v2018.1 build 0233) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.