[C#/WPF] ListBox에서 SelectedItem의 위치로 스크롤 움직이기 (Behavior)


[C#/WPF] ListBox에서 SelectedItem의 위치로 스크롤 움직이기 (Behavior)

선택되어진 SelectedItem의 위치로 스크롤 이동시키기 Behavior 입니다. public class ListBoxScrollIntoViewBehavior : Behavior { protected override void OnAttached() { base.OnAttached(); AssociatedObject.SelectionChanged += AssociatedObject_SelectionChanged; } protected override void OnDetaching() { AssociatedObject.SelectionChanged -= AssociatedObject_SelectionChanged; base.OnDetaching(); } private static void Associ..


원문링크 : [C#/WPF] ListBox에서 SelectedItem의 위치로 스크롤 움직이기 (Behavior)