<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>
開始的ScrollViewer-位置
我有一個XAML ScrollViewer中,在它的一些不同Datagroups並想啓動的ScrollViewer位置不是在ScrollViewer中的開始,但在第二組。 有誰知道,如何實現這一點?
感謝, 科拉
只是看看http://stackoverflow.com/questions/2946954/make-listview-scrollintoview-scroll-the-item-into-該中心的列表視圖-c –