[英]How do I navigate from one user control to another
I have A.XAML and B.XAML . 我有A.XAML和B.XAML。
I want to navigate from A to B when I click on a button in page A. 当我单击页面A中的按钮时,我想从A导航到B。
<Button Grid.Row="2" Content="View Sequence" command={binding myCommand} />
So , Inside myCommand , I want to right the logic to navigate to B.XAML and want to set the data context either by using commandparameter or any better alternates available. 因此,在myCommand内部,我想纠正逻辑以导航到B.XAML,并希望通过使用commandparameter或任何可用的更好替代方法来设置数据上下文。
Is there a simple solution for this? 有一个简单的解决方案吗?
You can use Avalon Wizard project. 您可以使用Avalon向导项目。
Link to project: http://avalonwizard.codeplex.com 链接到项目: http : //avalonwizard.codeplex.com
Link to tutorial: http://xinyustudio.wordpress.com/2012/10/02/how-to-use-wpf-avalonwizard-control-i/ 链接至教程: http : //xinyustudio.wordpress.com/2012/10/02/how-to-use-wpf-avalonwizard-control-i/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.