<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" >
<StackPanel Orientation="Horizontal">
<control:TileGroupControl DataContext="{Binding Path=BeraterGroup}"
DataTemplateSelector="{StaticResource
beraterDataTemplateSelector}" Margin="25,15,15,20" />
<control:TileGroupControl DataContext="{Binding Path=AufgabenGroup}"
DataTemplateSelector="{StaticResource
beraterDataTemplateSelector}"
Margin="15,15,15,20" />
<control:TileGroupControl DataContext="{Binding Path=KundenGroup}"
DataTemplateSelector="{StaticResource
beraterDataTemplateSelector}" Margin="15,15,15,20" />
<control:TileGroupControl DataContext="{Binding Path=GespraecheGroup}"
DataTemplateSelector="{StaticResource
beraterDataTemplateSelector}" Margin="15,15,15,20" />
</StackPanel>
</ScrollViewer>
我有一个XAML ScrollViewer,其中包含一些不同的数据组,并希望不在ScrollViewer的开头,而是在第二组启动ScrollViewer位置。 有谁知道,如何实现这个目标?
谢谢, 科拉
答案 0 :(得分:0)
我不确定我是否理解你想做什么。如果要移动滚动,可以使用此方法:
ScrollViewer.ScrollToHorizontalOffset(double d)