DataGrid HyperlinkButton导航到新的详细信息窗口 [英] DataGrid HyperlinkButton Navigating to a New Detail Window
问题描述
我有一个Sketchflow演示设置,其中包含从Blend(Silverlight Sketchflow项目)中的数据中获取的记录列表。 我已经能够设置数据网格,以便在模板列中有一个HyperlinkButton。 点击链接
即可转到显示常量文字的详细信息页面。 我希望能够做的是将数据上下文传递到详细信息页面,而不是在详细信息页面上显示相同的数据。
即。单击DataGrid页面中的ID 1将显示显示名称1的详细信息页面。
同样,在DataGrid页面中单击ID 2会将我带到显示名称2的详细信息页面,因此on。
有没有人知道我该如何做到这一点?
提前致谢,
马克
可能是这篇文章会有所帮助
http://www.kirupa.com/blend_silverlight/master_detail_sample_data.htm
I have a Sketchflow demonstration set up which has a list of records taken from data in Blend (Silverlight Sketchflow project). I have been able to set up the data grid so that I have a HyperlinkButton in a template column. Clicking on the link takes me through to a detail page showing constant text. What I want to be able to do is take the data context through to the detail page rather than show the same data on the detail page.
i.e. Clicking on ID 1 in the DataGrid page shows the detail page with Name 1 displayed.
Similarly, Clicking on ID 2 in the DataGrid page takes me to the detail page showing Name 2, and so on.
Does anyone have any idea on how I can do this?
Thanks in advance,
Mark
May be this post will help
http://www.kirupa.com/blend_silverlight/master_detail_sample_data.htm
这篇关于DataGrid HyperlinkButton导航到新的详细信息窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!