I have this problem :
.XAML file
<syntaxeditor:SyntaxEditor
Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}"
...>
______________________________
ViewModel file
public string Text
{
get
{
return _text;
}
set
{
_text = value;
RaisePropertyChanged("Text");
}
}
protected override void RaisePropertyChanged(string propertyName)
{
if (propertyName == "Text")
MessageBox.Show(_text);
base.RaisePropertyChanged(propertyName);
}
__________________________________
If i use this Property ("Text") on a TEXBOX, it's work correctly.
If i use this on SyntaxEditor don't work, why ??? What did i miss ???
Thanks.
I solve this to activate :IsTextDataBindingEnabled="True";
You can cancel this post.
[Modified 11 years ago]