2012-01-06 6 views
0

WPF에서 DocumentPageView를 바인딩하는 방법은 무엇입니까?
내 코드 :WPF에서 DocumentPageView.DocumentPaginator에 바인딩을 설정하는 방법

<DocumentPageView DocumentPaginator="{Binding Source}"></DocumentPageView> 

소스 DocumentPaginator의 유형입니다. 오류는 다음과 같습니다

오류 1 유형의 'DocumentPaginator'속성 'DocumentPageView'을 설정할 수 없습니다 '바인딩'. 'Binding'은 DependencyObject의 DependencyProperty에서만 설정할 수 있습니다.

도와주세요. Tnx ...

답변

3

오류 메시지에 모두 나와 있습니다. DependencyProperty에만 바인딩을 적용 할 수 있습니다. DocumentPaginator는 DocumentPageView의 DependencyProperty가 아니므로 바인드 할 수 없습니다.

관련 문제