2013-10-16 3 views
-1

내가 내 XAML에서 속성WPF에서이 바인딩 오류를 수정하는 방법?

public string ErrorMessage 

와 뷰 모델을 가지고는 내가

<TextBox Grid.Column="7" Text="{Binding Path=ErrorMesssage}"/> 

을하고 난

System.Windows.Data Error: 40 : 
BindingExpression path error: 
'ErrorMesssage' property not found on 'object' 
''MoineauPumpCorrectionViewModel' 
(HashCode=27349565)'. BindingExpression:Path=ErrorMesssage; 
DataItem='MoineauPumpCorrectionViewModel' (HashCode=27349565); 
target element is 'TextBox' (Name=''); target property is 'Text' (type 'String') 

지금 문제는 이것이다이 오류 메시지가 표시됩니다. 나는

enter image description here

데이터 컨텍스트 내 정확한 뷰 모델은 참으로 매우 분명하다 TextBox의 데이터 컨텍스트를보고 스눕을로드하고 내가 예상대로이 경우 cannot be empty을 읽고 재산 ErrorMessage있다 . 여기서 내가 뭘 잘못하고 있니?

답변

2

죄송하지만, 철자가 잘못되었습니다. 잘못되었습니다. D 대신

<TextBox Grid.Column="7" Text="{Binding Path=ErrorMesssage}"/> 

<TextBox Grid.Column="7" Text="{Binding Path=ErrorMessage}"/> 
+0

이 젠장 시도 :

여분의이 '잃게됩니다. 수면 부족. 3 sss 연속. :) – bradgonesurfing

+3

@bradgonesurfing 분명히 틀린 문자를 완전히! 더 많은 Z가 필요합니다. – Gusdor

관련 문제