8,734
社区成员
发帖
与我相关
我的任务
分享
<NavigationWindow x:Class="WpfApplicationForRotedEvent.Navigation.WindowForNavigate"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowForNavigate" Height="300" Width="300"
Source="MainWindow.xaml">
</NavigationWindow >
<NavigationWindow x:Class="WpfApplicationForRotedEvent.Navigation.WindowForNavigate"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowForNavigate" Height="300" Width="300"
Source="/MainWindow.xaml">
</NavigationWindow >
刚开始也是的,只是MainWindow.xaml应该是一个page,而不是window,所以出错。