Beispiel #1
0
 internal DataGridScrollViewer()
 {
     this.Loaded     += new RoutedEventHandler(OnLoaded);
     this.Unloaded   += new RoutedEventHandler(OnUnloaded);
     m_templateHelper = new ScrollViewerTemplateHelper(this, this.DragScrollBegin, this.DragScrollEnd);
 }
 internal DataGridScrollViewer()
 {
   this.Loaded += new RoutedEventHandler( OnLoaded );
   this.Unloaded += new RoutedEventHandler( OnUnloaded );
   m_templateHelper = new ScrollViewerTemplateHelper( this, this.DragScrollBegin, this.DragScrollEnd );
 }
 private void RegisterListeners( DataGridControl parentGridControl )
 {
   if( parentGridControl.ScrollViewer != null )
   {
     parentGridControl.ScrollViewer.ScrollChanged += new ScrollChangedEventHandler( this.OnScrollViewerScrollChanged );
     m_scrollViewerTemplateHelper = new ScrollViewerTemplateHelper( parentGridControl.ScrollViewer, this.DragScrollBegin, this.DragScrollEnd );
     m_scrollViewerTemplateHelper.RefreshTemplate();
   }
 }