链接多个Windows Blend 4 [英] Linking multiple windows Blend 4
本文介绍了链接多个Windows Blend 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1.谁能说出如何链接在Blend 4 WPF项目中创建的多个窗口吗?
例如:-成功登录后,我有登录窗口,它必须导航到
另一页..
2.如何将项目添加到组合框中?
1.Can anybody tell how to link multiple windows created in blend 4 wpf project?
eg:- i have login window after successful login it has to navigate into
another page..
2. how to add items into combo box?
推荐答案
1)Blend是组件设计工具,而不是编程工具.如果要使一个窗口显示另一个窗口,则必须编写代码来实现.
2)大多数时候,您使用数据绑定,但也可以手动添加项目.
1) Blend is a component design tool, not a programming tool. If you want to make make a window display another window, you have to write code to do it.
2) Most of the time, you use data binding, but you can also just manually add items.
对于问题1,请尝试以下操作:
For question #1, try this:
public void Login_Click(object sender, RoutedEventArgs e)
{
// login routines here
if (LoginSuccess)
{
new MyMainWindow.Show();
}
this.Close();
}
对于问题2,您可以在CodeProject中找到许多WPF数据绑定文章.
For question #2, you can find many WPF Databinding articles in CodeProject.
这篇关于链接多个Windows Blend 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文