c# - WPF share data between pages -
i'm new wpf, , wish know, if following possible.
i have 2 wpf pages "page_parts" , "page_parts_edit". page_parts has link call page_parts_edit, , contents of entire page displayed within page_parts.
page_parts contains datagrid parts in system. need able click on row within datagrid , pass selected row data textbox within child page "page_parts_edit". in essence allowing user select part details given selection.
i'm able similar approach when both objects contained within same wpf page, in following manner:
<textbox x:name="textpartnumber" text="{binding elementname=listviewpart, path=selecteditem.partnumber}" width="150" />
however, i'm not able use same approach when datagrid part of 1 page , textbox part of different page.
perhaps creating array of strings, datagrid selected row updates linked dynamicresource, bind dynamicresource textboxes on other page. possible?
i'm open other suggestions.
hope question clear.
thanks in advance.
alain
Comments
Post a Comment