【发布时间】:2015-07-27 05:31:08
【问题描述】:
我正在 WPF 应用程序中创建一个 UserControl 对话框。 这是它的构造函数:
public ExcelExportView()
{
InitializeComponent();
// some stuffs here.
// IsCancelled may got the value true/false
if (IsCancelled)
{
// is there anyway to dispose the UserControl here?
}
}
这里我使用Caliburn.Micro 来引导我的应用并创建视图。
所以问题是:有没有办法在构造过程中处理 UserControl?
【问题讨论】:
标签: c# wpf constructor user-controls caliburn.micro