积极答复者
两个xaml页面控制的问题

问题
答案
-
xaml2中定义事件
public event EventHandler Closing;
private void Close()
{
if(Closing != null)
Closing(this, EventArgs.Empty);
}
xaml1中
xaml2.Closing += new EventHandler(xaml2_Closing);
void xaml2_Closing(object sender, EventArgs e)
{
//Dispose xaml2
//Storyboard.Begin();
}
大概是这个意思,用事件做就好了- 已标记为答案 微软中文技术论坛Moderator 2009年6月30日 6:46
全部回复
-
xaml2中定义事件
public event EventHandler Closing;
private void Close()
{
if(Closing != null)
Closing(this, EventArgs.Empty);
}
xaml1中
xaml2.Closing += new EventHandler(xaml2_Closing);
void xaml2_Closing(object sender, EventArgs e)
{
//Dispose xaml2
//Storyboard.Begin();
}
大概是这个意思,用事件做就好了- 已标记为答案 微软中文技术论坛Moderator 2009年6月30日 6:46