wpf
터치 스크롤 뷰어 List
동동(이재동)
2025. 3. 17. 16:49
ListView안의 List에서는 터치가 안먹는다. 이떄는
<ListView ItemsSource="{Binding ElementName=xMainPage , Path=DataContext.AllMenuFlipData}">
<ListView.Template>
<ControlTemplate>
<StackPanel IsItemsHost="True" />
</ControlTemplate>
</ListView.Template>
이런식으로 Template안의 Panel에서 IsItemHost 를 True로 바꿔주면 된다.
GPT에선
IsItemsHost 속성은 주로 **Panel**에서 사용되며, 이 속성이 **true**로 설정된 경우 해당 패널이 항목을 호스트하는 역할을 한다는 것을 의미합니다.
이렇게 할경우 list에서 스크롤할떄 전체로 스크롤 된다.
키오스크 개발할떄 필수인거 같다.!!