Click here to Skip to main content
14,490,096 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all,

I'm new to WPF, and I wish to know, if the following is possible.

I have two WPF pages "Page_Parts" and "Page_Parts_Edit". Page_Parts has a link to call Page_Parts_Edit, and its contents of the entire page are displayed within Page_Parts.

Page_Parts contains a datagrid with all the parts in the system. I need to be able to click on a row within the datagrid and pass the selected row data to a textbox within the child page "Page_Parts_Edit". In essence allowing the user to select the part details from a given selection.

I'm able to do a similar approach when both objects are contained within the same WPF page, in the following manner:

<TextBox x:Name="TextPartNumber" Text="{Binding ElementName=ListViewPart, Path=SelectedItem.PartNumber}" Width="150" />


However, I'm not able to use the same approach when the datagrid is part of one page and the textbox is part of a different page.

Hope my question is clear.

Thanks in advance.

Alain
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100