wpf: How popup a usercontrol?

前端 未结 2 1804
日久生厌
日久生厌 2020-12-31 20:06

Background: I have a project which use the datagrid to display the data, and the datagrid has a rowdetail column which include a usercontrol. The usercontrol has some TextBo

2条回答
  •  无人及你
    2020-12-31 20:33

    Well, I would like to just make a comment about Gate Lumas' comment but the system won't let me so I'm putting this down as an answer.

    XAML Popup sample: archive of link | original link

    If you download that sample and look at the .xaml and .cs files for Senario1, you'll have a perfect example of how to use and implement a popup. Alternatively you can just browse through the code on the site, but I find being able to run and interact with the sample more helpful than just looking at the code.

提交回复
热议问题