private void lp1234lploopinfo_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { int x = 0; x += 9; x += 12; }
//再生用スライド private void _PlaySlider_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { _playSlider = true; _scrollEventType = e.ScrollEventType; SetValue(PlayValueProperty, (double)e.NewValue); //System.Diagnostics.Debug.WriteLine("_PlaySlider_Scroll:" + e.NewValue + "/" + e.ScrollEventType); }
/// <summary> /// Horizontal scroll bar /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { lock (this) { selectedBoard.hScroll = (int)hScrollBar.Value; } }
void Scrollbar_Scroll(object sender, SWC.Primitives.ScrollEventArgs e) { this.Context.InvokeUserCode(delegate { eventSink.OnValueChanged(); }); }
private void ScrollBarX_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { GlobalVars.delta.X = (ScrollBarX.Value - lastScrollX) * 50 * GlobalVars.zoom; planeHost.Redraw(); GlobalVars.delta.X = 0; lastScrollX = ScrollBarX.Value; }
private void EhWP_VertScroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (null != _guiController) { _guiController.EhView_VertScrollBarScroll((int)e.NewValue); } }
private void HBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { Rect area = Scroll.Area; area.X = HBar.Value; Scroll.Area = area; Canvas.Update(); }
public void scrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { MainWindow form1 = this.Owner as MainWindow; form1.text1.FontSize = scrollBar.Value; form1.text2.FontSize = scrollBar.Value; label.Content = Math.Round(scrollBar.Value) + " pt"; }
private void ScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (wplayer != null) { wplayer.controls.currentPosition = SongPosBar.Value; SongPosBar.Maximum = (int)wplayer.currentMedia.duration; } }
private void ScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { _heightDirectoryUserControls = 0; foreach (CDirectoryUserControl directoryUserControl in _directoryUserControls) { directoryUserControl.Margin = new Thickness(0, _heightDirectoryUserControls - scrollBar.Value, 0, 0); _heightDirectoryUserControls = _heightDirectoryUserControls + directoryUserControl.Height; } }
private void sbar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { timer.Stop(); int frames = Convert.ToInt32(this.sbar.Value) * FlashPlayer.TotalFrames / Convert.ToInt32(sbar.Maximum); FlashPlayer.GotoFrame(frames); FlashPlayer.FrameNum = frames; FlashPlayer.Play(); timer.Start(); }
internal void ManualScroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (MidiManager.IsPlaying) { return; } int newScrollValue = (int)vue.TimeScroller.Value; MidiManager.CurrentTime = newScrollValue; vue.TimeUpdate(); }
private void sbScrollbar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (m_SearchAddrDataList1.AddrDataCollection.Count != m_SearchAddrDataList2.AddrDataCollection.Count) { return; } sbScrollbar.Maximum = m_SearchAddrDataList1.AddrDataCollection.Count - 1; dgMsg2.SelectedIndex = dgMsg1.SelectedIndex = Convert.ToInt32(sbScrollbar.Value); dgMsg1.ScrollIntoView(dgMsg1.SelectedItem); dgMsg2.ScrollIntoView(dgMsg2.SelectedItem); }
private void scrFile_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { uint n = Convert.ToUInt16(e.NewValue); if (n < m_Files.Count()) { m_FileIndex = n; InitNewSourceFile(); // If script active/valid DoScript(); PrepareSource(); } }
private void sbar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (me.CanPause) { timer.Stop(); me.Stop(); double times = this.sbar.Value * me.NaturalDuration.TimeSpan.TotalSeconds / sbar.Maximum; me.Position = TimeSpan.FromSeconds(times); me.Play(); timer.Start(); } //else // sbar.Value=0; }
private void vScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { System.Windows.Forms.ScrollEventType type; switch (e.ScrollEventType) { case System.Windows.Controls.Primitives.ScrollEventType.Last: type = System.Windows.Forms.ScrollEventType.Last; break; case System.Windows.Controls.Primitives.ScrollEventType.EndScroll: type = System.Windows.Forms.ScrollEventType.EndScroll; break; case System.Windows.Controls.Primitives.ScrollEventType.SmallIncrement: type = System.Windows.Forms.ScrollEventType.SmallIncrement; break; case System.Windows.Controls.Primitives.ScrollEventType.SmallDecrement: type = System.Windows.Forms.ScrollEventType.SmallDecrement; break; case System.Windows.Controls.Primitives.ScrollEventType.LargeIncrement: type = System.Windows.Forms.ScrollEventType.LargeIncrement; break; case System.Windows.Controls.Primitives.ScrollEventType.LargeDecrement: type = System.Windows.Forms.ScrollEventType.LargeDecrement; break; case System.Windows.Controls.Primitives.ScrollEventType.ThumbPosition: type = System.Windows.Forms.ScrollEventType.ThumbPosition; break; case System.Windows.Controls.Primitives.ScrollEventType.ThumbTrack: type = System.Windows.Forms.ScrollEventType.ThumbTrack; break; case System.Windows.Controls.Primitives.ScrollEventType.First: type = System.Windows.Forms.ScrollEventType.First; break; default: type = System.Windows.Forms.ScrollEventType.First; break; } System.Windows.Forms.ScrollEventArgs args = new System.Windows.Forms.ScrollEventArgs(type, (int)e.NewValue); this.hexBox._vScrollBar_Scroll(this.vScrollBar, args); }
// Update the sample. private void scr_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { // Get the new color. Color clr = new Color(); clr.R = (byte)scrRed.Value; clr.G = (byte)scrGreen.Value; clr.B = (byte)scrBlue.Value; clr.A = 255; // Apply the color. SolidColorBrush br = new SolidColorBrush(clr); grdSample.Background = br; }
private void ScrollHor_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { Thickness margin = this.DrawableSurface.Margin; margin.Left = (e.NewValue * -1); this.DrawableSurface.Margin = margin; if (t_selectionGlass != null) { Thickness glassMargin = t_selectionGlass.Margin; glassMargin.Left = (e.NewValue * -1); t_selectionGlass.Margin = glassMargin; } Workflow.CoordinatesManager.RepositionImage((e.NewValue * -1), Workflow.CoordinatesManager.Origin.Y); }
void gameScroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (scrollgame.Value == 0) { Gameshown.Titre = Currentgame0.Titre; Gameshown.Rating = Currentgame0.Rating; Gameshown.Editeur = Currentgame0.Editeur; Gameshown.Description = Currentgame0.Description; Gameshown.Annee = Currentgame0.Annee; Gameshown.PicturePath = Currentgame0.PicturePath; } Currentgame0.Rating = Gameshown.Rating; if (scrollgame.Value == 1) { Gameshown.Titre = Currentgame1.Titre; Gameshown.Rating = Currentgame1.Rating; Gameshown.Editeur = Currentgame1.Editeur; Gameshown.Description = Currentgame1.Description; Gameshown.Annee = Currentgame1.Annee; Gameshown.PicturePath = Currentgame1.PicturePath; } if (scrollgame.Value == 2) { Gameshown.Titre = Currentgame2.Titre; Gameshown.Rating = Currentgame2.Rating; Gameshown.Editeur = Currentgame2.Editeur; Gameshown.Description = Currentgame2.Description; Gameshown.Annee = Currentgame2.Annee; Gameshown.PicturePath = Currentgame2.PicturePath; } if (scrollgame.Value == 3) { Gameshown.Titre = Currentgame3.Titre; Gameshown.Rating = Currentgame3.Rating; Gameshown.Editeur = Currentgame3.Editeur; Gameshown.Description = Currentgame3.Description; Gameshown.Annee = Currentgame3.Annee; Gameshown.PicturePath = Currentgame3.PicturePath; } }
private void Voluembar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { try { if (Volumebar.Value < 100) { volumetxt(); } if (Volumebar.Value < 0) { volumetxt(); } } catch { Titlelbl.Content = "No song to adjust"; } }
private void ScrollBarH_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { if (e.ScrollEventType == System.Windows.Controls.Primitives.ScrollEventType.EndScroll) { scrollBarRepeatTimer.Stop(); FinishPan(); return; } double value = e.NewValue; Point simMousePosition = new Point(-scrollBarHOldValue, -scrollBarVOldValue); if (!scrollBarRepeatTimer.IsEnabled) { scrollBarRepeatTimer.Tick += ScrollBarRepeatTimer_Tick; scrollBarRepeatTimer.Interval = new TimeSpan(0, 0, 0, 0, 500); StartPan(simMousePosition); } simMousePosition.X = -value; scrollBarHOldValue = value; ContinuePan(simMousePosition); scrollBarRepeatTimer.Start(); }
private void Window_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { }
private void ScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { _scrollPosition = new Vector2(-(float)ScrollBarH.Value, -(float)ScrollBarV.Value); ClampScroll(); }
private void avalonTxt_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { txt_process_msg(); }
private void selectedElements_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { }
private void TimeRulerSB_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { sv_timeRuler.ScrollToHorizontalOffset(timeRulerSB.Value); }
private void fontsizeScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { FontSizeTextBox.IntValue = (int)FontsizeScrollBar.Value; TestCustomControlSample.FontSize = FontSizeTextBox.IntValue.Value; }
private void TaskDetailsGrid_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { }
//Sets the current scroll location of the scrollview control to be equal to the scroll bar position. This allows //the scroll bar to drive the scroll viewer. public void ScrollBar_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { this.svPlan1.ScrollToVerticalOffset(this.sbPlanCompare.Value); }
private void TextBoxMessages_Scroll(object sender, System.Windows.Controls.Primitives.ScrollEventArgs e) { this.CheckBoxAutoScroll.IsChecked = false; }