2011-06-14 12 views
0

itemsControl이있는 컨트롤러를 썼습니다. 컨트롤의 각 항목은 내가 작성한 UserControl입니다.ItemsControl에서 항목에 바인딩하는 방법?

ItemsControl에 :

는 나는 내가 보유하고있는 항목 소스와 일부 모음 사이의 바인딩 만들고 싶어 난과 결합하려는 컬렉션 개체를 보유 일부 목록입니다

<ItemsControl x:Name="itemsControl" Background="White" > 
     <ItemsControl.Template> 
      <ControlTemplate> 
       <ScrollViewer x:Name="ScrollViewer" Padding="{TemplateBinding Padding}" > 
        <ItemsPresenter /> 
       </ScrollViewer> 
      </ControlTemplate> 
     </ItemsControl.Template> 
    </ItemsControl> 

그 itemsControl에 추가 될 'usercontrol'을 만드는 데 사용할 수 있습니다.

어떻게 할 수 있습니까?

답변

관련 문제