I have a WPF combobox
<ComboBox Name="cmbExpression" IsEditable="True"/>
Now I have written some text over there say fx(a,b,c) ,f(x),x,p,mv,P#,Fx(X),x,sometext
Now my requirement is that, whenever the cursor or the mouse (arrow keys viz -> and <-) will be placed on the characters, I should be able to get the value.
Some Test cases:
Case 1:
User put the cursor or mouse pointer on x of f(x).
Output will be f(x).
Case 2:
User put on v of mv
Output: mv
Case 3:
User put the cursor on t of sometext.
Output: sometext
Case 4:
User put the cursor on ( on Fx(X)
Output: Fx(X)
Case 5:
User put the cursor on ',' of fx(a,b,c)
Output: fx(a,b,c)
I am using C#3.0 and WPF
Help needed.
Thanks