I have a ItemsControl
in ScrollViewer
and I set ItemsPanel
of my ItemsControl
to Horizontal StackPanel
and i bound it to ObservableCollection
of userControls
.Now I wanna when user click on icons of open UserControls
in my ItemsControl
,automatically scrollviwer
's offset change to show icon clicked UserControl
.( I have a Icon for my each usercontrols
)
And also when user open new UserControl
,I wanna my ItemsControl
automatically show it ( now when I open a new usercontrol
i should scroll my ItemControl
to reach it),
can I do this with above controls ,if yes, can you tell me how? If not, I appreciate to tell me which controls should I use controls and how?