I need to have spellcheck available for users in my windows application. I inserted a WPF Interoperability ElementHost onto my form and used this code to set it up. It works great.
Code to get it working:
var memoBox = new System.Windows.Controls.TextBox();
memoBox.SpellCheck.IsEnabled = true;
txtMemoField.Child = memoBox;
Now I need to save what is typed in the elementhost. Here is my code:
tblS.MemoField = Convert.ToString(this.txtMemoField.Child);
This retrieves: "System.Windows.Controls.TextBox: what's been typed"
I just want "what's been typed." How do I do code for this because I can see it in there (all by itself) when I debug, I just can't get it.