Hi
I have a xamdatagrid with unboundfields. The last field is a xamtexteditor. How do i pass this value to the constructor of another page? I have other xamtexteditors in the parent page, which can be easily accessed using this.txtnameofxamtexteditor. Kindly help me in this scenario.
Thanks
Your scenario is little vague, but I am assuming that you want something like this;
private void Button_Click(object sender, RoutedEventArgs e)
{
Window2 w2 = new Window2((xamDataGrid.Records[0] as DataRecord).Cells[0].Value);
w2.Show();
}
Moreover, you can use the DataContext or the Tag properties to do the same.
Thanks Alex. Will try the same and let u know..
Alex.. just a quick question..
can a string be typecasted/converted as a XamtextEditor and vice versa??
I did not understand your scenario. Do you want to cast a string to XamTextEditor or the XamTextEditor's value? can you give me an example?
Yes exactly...
Unfortunately you cannot do that. Can you please tell us what your ultimate goal is?
I want to cast a string to XamTextEditor