0
我的應用程序中有一個XAML文件,我試圖通過框架控件將其他XAML文件加載到框架中,但它不工作。我收到錯誤Content for the URI is invalid
。當我運行應用程序時,該錯誤只是作爲對話框錯誤彈出,因此沒有可用的堆棧跟蹤。將XAML加載到框架時出錯
下面是我的「母版頁」的代碼:
<navigation:Page x:Class="SilverAIM.BusinessCenter.BusinessCenterMaster"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="758" d:DesignHeight="480"
Title="BusinessCenterMaster Page">
<Grid x:Name="LayoutRoot">
<navigation:Frame Height="100" HorizontalAlignment="Left" Margin="0,248,0,0" Source="Test.xaml" Name="testFrame" VerticalAlignment="Top" Width="758" />
</Grid>
</navigation:Page>