BogheApp.SessionWindow.SessionWindowName_Loaded C# (CSharp) 메소드

SessionWindowName_Loaded() 개인적인 메소드

private SessionWindowName_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
리턴 void
        private void SessionWindowName_Loaded(object sender, RoutedEventArgs e)
        {
            if (this.AVSession != null)
            {

            }

            this.historyDataSource.CollectionChanged += (_sender, _e) =>
            {
                switch (_e.Action)
                {
                    case NotifyCollectionChangedAction.Add:
                    case NotifyCollectionChangedAction.Remove:
                    case NotifyCollectionChangedAction.Replace:
                    case NotifyCollectionChangedAction.Reset:
                        this.historyCtrlScrollViewer.ScrollToEnd();
                        break;
                }
            };
        }