问题
1.How to close or cancel the pop up window in Button click.?
- When i update the data in pop up window, the same time how to refresh the datagrid in main page.?
回答1:
Close a popup by optionally setting DialogResult to true/false and then calling Close(). You can set the IsDefault or IsCancel property on a button to automatically set the result & close.
You need to provide more information for your datagrid question.
来源:https://stackoverflow.com/questions/781250/wpf-page-refresh