2014-02-10 92 views
0

我在项目中引用了silverlight xaml文件。当我尝试建立这个项目,它抛出以下错误Silverlight XAML文件错误:成员“Margin”无法识别或无法访问

The member "Margin" is not recognized or is not accessible. 

这里是我的代码:

<UserControl x:Class="DBServer.Selenium.Silvernium.ReferenceApplication.SilverlightFixture" 
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" 
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> 
<navigation:Frame x:Name="frameContent" Source="/MainPage.xaml" Margin="0,0,0,0"/> 
</UserControl> 
+0

我也没有看到任何问题。也许你可以删除导航控件,编译解决方案。然后再添加它,编译它。我想其他错误会导致保证金的错误。 –

回答

0

你试过把框架网格内?

<Grid> 
<navigation:Frame x:Name="frameContent" Source="/MainPage.xaml" Margin="0,0,0,0"/> 
</Grid> 

,因为你说的保证金=“0,0,0,0”,但在XAML你没有任何其他的内容作为参考在保证金中定义的这个距离,所以通过去除或尝试保证金或放入电网

相关问题