Binding syntax language in XAML

SyntaxEditor for WPF Forum

Posted 6 years ago by Mike
Version: 17.2.0665


I'm trying to set the syntaxeditor as cell template on a datagrid. Text binding you have added a while ago but how would I bind the syntax language? Or is there another way to get this to work? As a cell template I cannot access the editors in code and set the language like it's done in all examples.

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Mike,

The document and syntax language types are all defined in a library that doesn't rely on UI, so there are no dependency properties in that portion of the product.  If you need to data bind the syntax language, you might have to create a custom attached property and bind the language to that on SyntaxEditor.  Then in the property changed handler, set the document.Language property programmatically.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.