2014-02-10 6 views
0

내 프로젝트에서 실버 라이트 xaml 파일에 대한 참조가 있습니다. 내가이 프로젝트를 빌드 할 때 오류 여기Silverlight XAML 파일 오류 : "여백"멤버가 인식되지 않거나 액세스 할 수 없습니다.

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에서 당신은 여백에 정의 된 그 거리에 대한 참조로 다른 내용을 가지고 있지 않기 때문에 제거하여 시도하거나 여백 또는 격자 안쪽에 넣기