protected static void ScrollOffsetValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { DragScrollViewer myClass = (DragScrollViewer)d; double newOffset = (double)e.NewValue; double oldOffset = (double)e.OldValue; myClass.scrollViewer.ScrollToVerticalOffset(newOffset); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 3: this.mainContentBorder = ((System.Windows.Controls.Border)(target)); return; case 4: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 5: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 6: this.buttonStart = ((PosControls.TextBlockButton)(target)); #line 35 "..\..\..\UpdateServiceControl.xaml" this.buttonStart.Click += new System.Windows.RoutedEventHandler(this.buttonStart_Click); #line default #line hidden return; case 7: this.buttonRestart = ((PosControls.TextBlockButton)(target)); #line 36 "..\..\..\UpdateServiceControl.xaml" this.buttonRestart.Click += new System.Windows.RoutedEventHandler(this.buttonRestart_Click); #line default #line hidden return; case 8: this.buttonStop = ((PosControls.TextBlockButton)(target)); #line 37 "..\..\..\UpdateServiceControl.xaml" this.buttonStop.Click += new System.Windows.RoutedEventHandler(this.buttonStop_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PointOfSale.ConfigurationManager)(target)); return; case 3: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 4: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 5: this.buttonSendException = ((PosControls.PushButton)(target)); #line 37 "..\..\..\UpdateControl.xaml" this.buttonSendException.Selected += new System.EventHandler(this.buttonSendException_Selected); #line default #line hidden return; case 6: this.buttonVersionCheck = ((PosControls.PushButton)(target)); #line 38 "..\..\..\UpdateControl.xaml" this.buttonVersionCheck.Selected += new System.EventHandler(this.buttonVersionCheck_Selected); #line default #line hidden return; case 7: this.buttonUpdate = ((PosControls.PushButton)(target)); #line 39 "..\..\..\UpdateControl.xaml" this.buttonUpdate.Selected += new System.EventHandler(this.buttonUpdate_Selected); #line default #line hidden return; case 8: this.progressBar = ((System.Windows.Controls.ProgressBar)(target)); return; } this._contentLoaded = true; }
protected static object ScrollOffsetCoerceValue(DependencyObject d, object obj) { DragScrollViewer myClass = (DragScrollViewer)d; double newOffset = (double)obj; // Sampling Index, Loop if (myClass.previousValuesIndex == 3) { myClass.previousValuesIndex = 0; } // ((oldOffset != myClass.scrollViewer.VerticalOffset) // Restore Previous Value if (Double.IsInfinity(newOffset) || Double.IsNaN(newOffset) || !PassesFixTest(myClass.previousValues, myClass.previousValuesIndex, newOffset)) { if (myClass.isAnimating) { myClass.EndAnimation(); } return(myClass.previousValues[myClass.previousValuesIndex++]); } // Limit Minimum if (newOffset < 0) { if (myClass.isAnimating) { myClass.EndAnimation(); } return(myClass.previousValues[myClass.previousValuesIndex++] = 0); } // Limit Maximum if (newOffset > myClass.scrollViewer.ScrollableHeight) { if (myClass.isAnimating) { myClass.EndAnimation(); } return(myClass.previousValues[myClass.previousValuesIndex++] = myClass.scrollViewer.ScrollableHeight); } // Unchanged return(myClass.previousValues[myClass.previousValuesIndex++] = (double)obj); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\UpdateBuilderControl.xaml" ((TemposClientAdministration.UpdateBuilderControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 3: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 4: this.mainContentBorder = ((System.Windows.Controls.Border)(target)); return; case 5: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 6: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 7: this.buttonBuildUpdate = ((PosControls.TextBlockButton)(target)); #line 35 "..\..\..\UpdateBuilderControl.xaml" this.buttonBuildUpdate.Click += new System.Windows.RoutedEventHandler(this.buttonBuildUpdate_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 3: this.headerGrid = ((System.Windows.Controls.DataGrid)(target)); #line 20 "..\..\..\TimesheetMaintenanceControl.xaml" this.headerGrid.Sorting += new System.Windows.Controls.DataGridSortingEventHandler(this.dataGrid_Sorting); #line default #line hidden return; case 4: this.listBox = ((PosControls.DragScrollViewer)(target)); return; case 5: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); #line 67 "..\..\..\TimesheetMaintenanceControl.xaml" this.dataGrid.BeginningEdit += new System.EventHandler <System.Windows.Controls.DataGridBeginningEditEventArgs>(this.dataGrid_BeginningEdit); #line default #line hidden #line 67 "..\..\..\TimesheetMaintenanceControl.xaml" this.dataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 3: this.buttonDeleteIncident = ((PosControls.TextBlockButton)(target)); #line 28 "..\..\..\CrashReportControl.xaml" this.buttonDeleteIncident.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteIncident_Click); #line default #line hidden return; case 4: this.listBox = ((PosControls.DragScrollListBox)(target)); #line 29 "..\..\..\CrashReportControl.xaml" this.listBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBox_SelectionChanged); #line default #line hidden return; case 5: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 6: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 3: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 4: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 5: this.keyboardControl = ((PosControls.KeyboardEntryControl)(target)); #line 31 "..\..\..\CommandShellControl.xaml" this.keyboardControl.EnterPressed += new System.EventHandler(this.keyboardControl_EnterPressed); #line default #line hidden #line 31 "..\..\..\CommandShellControl.xaml" this.keyboardControl.ConsoleClear += new System.EventHandler(this.keyboardControl_ConsoleClear); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManagerCore)(target)); return; case 3: this.mainContentBorder = ((System.Windows.Controls.Border)(target)); return; case 4: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 5: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 6: this.buttonBuildUpdate = ((PosControls.PushButton)(target)); #line 49 "..\..\..\UpdateBuilderControl.xaml" this.buttonBuildUpdate.Selected += new System.EventHandler(this.buttonBuildUpdate_Selected); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainPane = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.Configuration = ((PosControls.ConfigurationManager)(target)); return; case 3: #line 13 "..\..\..\GeneralSettingsUpdateControl.xaml" ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded); #line default #line hidden return; case 4: this.dragScrollViewer = ((PosControls.DragScrollViewer)(target)); return; case 5: this.flowDocumentScroll = ((System.Windows.Controls.FlowDocumentScrollViewer)(target)); return; case 6: this.buttonVersionCheck = ((PosControls.TextBlockButton)(target)); #line 43 "..\..\..\GeneralSettingsUpdateControl.xaml" this.buttonVersionCheck.Click += new System.Windows.RoutedEventHandler(this.buttonVersionCheck_Click); #line default #line hidden return; case 7: this.buttonUpdate = ((PosControls.TextBlockButton)(target)); #line 44 "..\..\..\GeneralSettingsUpdateControl.xaml" this.buttonUpdate.Click += new System.Windows.RoutedEventHandler(this.buttonUpdate_Click); #line default #line hidden return; case 8: this.progressBar = ((System.Windows.Controls.ProgressBar)(target)); return; case 9: this.radioButtonAutoUpdateIsEnabled = ((PosControls.PushRadioButton)(target)); #line 54 "..\..\..\GeneralSettingsUpdateControl.xaml" this.radioButtonAutoUpdateIsEnabled.SelectionGained += new System.EventHandler(this.radioButtonAutoUpdateIsEnabled_SelectionGained); #line default #line hidden return; case 10: this.radioButtonAutoUpdateIsNotEnabled = ((PosControls.PushRadioButton)(target)); #line 55 "..\..\..\GeneralSettingsUpdateControl.xaml" this.radioButtonAutoUpdateIsNotEnabled.SelectionGained += new System.EventHandler(this.radioButtonAutoUpdateIsNotEnabled_SelectionGained); #line default #line hidden return; case 11: this.textBoxServer = ((PosControls.CustomTextBox)(target)); #line 57 "..\..\..\GeneralSettingsUpdateControl.xaml" this.textBoxServer.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxServer_TextChanged); #line default #line hidden return; case 12: this.textBoxPort = ((PosControls.CustomTextBox)(target)); #line 58 "..\..\..\GeneralSettingsUpdateControl.xaml" this.textBoxPort.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxPort_TextChanged); #line default #line hidden return; case 13: this.buttonSave = ((PosControls.TextBlockButton)(target)); #line 59 "..\..\..\GeneralSettingsUpdateControl.xaml" this.buttonSave.Click += new System.Windows.RoutedEventHandler(this.buttonSave_Click); #line default #line hidden return; } this._contentLoaded = true; }