开发者

WPF + UserControl + OnClosing event

I write an application in WPF where I have one main page and one user control in it. I need to ca开发者_StackOverflow中文版ll function when I close the page where user control is embedded. I can't call this function from the main page, I need to do it directly in user control (as I don't have access to main page). There is an event unloaded for user control, but it is called to late. How can I get something like onclosing event?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜