I am using a SelectionChanged event in ListView1, which changes a string: "dr.CustomBackgroundColor". That string is used to find the index and change the selection in a target ListView: "SetColorListView". Which works as expected!
But the Selection in "SetColorListView" does not "jump" into view. ie. It is selected, but I have to scroll to find it...
Is there an easy way to have the SelectedItem come into view automatically?
<ListView x:Name="SetColorListView" Focusable="False"
ItemsSource="{Binding SystemColorObservableCollection, UpdateSourceTrigger=PropertyChanged}"
SelectedValuePath="HexValue"
SelectedValue="{Binding objGantChartClass.CustomBackgroundColor, Mode=TwoWay}"
SelectedIndex="{Binding SystemColorObservableCollectionSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsSynchronizedWithCurrentItem="True">
SystemColorObservableCollectionSelectedIndex = SystemColorObservableCollection.IndexOf(SystemColorObservableCollection.Where(c => c.HexValue == dr.CustomBackgroundColor).FirstOrDefault());