When my selected Item is the last item of my list, and then i click Button1, Selected item is well the first of my list, but the scrollViewer is still at the end of the list.
I hope it's clear...
<
telerik:RadListBox
x:Name
=
"RadListBox"
Grid.Column
=
"3"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
ScrollViewer.VerticalScrollBarVisibility
=
"Disabled"
ItemsSource
=
"{Binding RechercheResident.PagedSyntheseResidents, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
SelectedItem
=
"{Binding RechercheResident.SelectedSyntheseResident, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
>
<
telerik:RadListBox.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF61B003"
Offset
=
"0.049"
/>
<
GradientStop
Color
=
"#FFC3FD89"
Offset
=
"0.854"
/>
<
GradientStop
Color
=
"#FFABE475"
Offset
=
"0.271"
/>
</
LinearGradientBrush
>
</
telerik:RadListBox.Background
>
<
telerik:RadListBox.ItemsPanel
>
<
ItemsPanelTemplate
>
<
telerik:RadWrapPanel
Orientation
=
"Horizontal"
/>
</
ItemsPanelTemplate
>
</
telerik:RadListBox.ItemsPanel
>
<
telerik:RadListBox.ItemTemplate
>
<
DataTemplate
>
<
Grid
Margin
=
"2"
VerticalAlignment
=
"Stretch"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"50"
/>
<
ColumnDefinition
Width
=
"80"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Source
=
"{Binding Photo}"
Height
=
"60"
Stretch
=
"Fill"
/>
<
StackPanel
Grid.Column
=
"1"
Orientation
=
"Vertical"
>
<
telerik:Label
Margin
=
"0,0,0,0"
Content
=
"{Binding Resident.Titre, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
Style
=
"{StaticResource AgmLabelInputStyle}"
/>
<
telerik:Label
Margin
=
"0,0,0,0"
Content
=
"{Binding Resident.Nom, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
Style
=
"{StaticResource AgmLabelInputStyle}"
/>
<
telerik:Label
Margin
=
"0,0,0,0"
Content
=
"{Binding Resident.Prenom, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
Style
=
"{StaticResource AgmLabelInputStyle}"
/>
</
StackPanel
>
</
Grid
>
</
DataTemplate
>
</
telerik:RadListBox.ItemTemplate
>
</
telerik:RadListBox
>