public void SetVariationListBoxScrollOffset(double offset) { System.Windows.Controls.ScrollViewer scrollViewer = ListBoxUtil.FindScrollViewer(StylesVariationListBox); if (scrollViewer != null) { scrollViewer.ScrollToVerticalOffset(offset); } }
public double GetVariationListBoxScrollOffset() { var scrollOffset = 0d; var scrollViewer = ListBoxUtil.FindScrollViewer(StylesVariationListBox); if (scrollViewer != null) { scrollOffset = scrollViewer.VerticalOffset; } return(scrollOffset); }
public double GetVariationListBoxScrollOffset() { double scrollOffset = 0d; System.Windows.Controls.ScrollViewer scrollViewer = ListBoxUtil.FindScrollViewer(StylesVariationListBox); if (scrollViewer != null) { scrollOffset = scrollViewer.VerticalOffset; } return(scrollOffset); }
public ExplorerTree() { InitializeComponent(); SuppressEvents = false; _listBoxUtil = new ListBoxUtil(); cmdAdd.Enabled = false; cmdEdit.Enabled = false; cmdDelete.Enabled = false; cboDropdown.Enabled = false; ItemTree.Enabled = false; LoadIconsIntoListView(); BuildMenuImages(); }
public Completion() { InitializeComponent(); _completionListBox.KeyDown += (se, e) => { if (e.KeyData == (Keys.N | Keys.Control)) { ListBoxUtil.SelectNextItem(_completionListBox); e.SuppressKeyPress = true; } else if (e.KeyData == (Keys.P | Keys.Control)) { ListBoxUtil.SelectPreviousItem(_completionListBox); e.SuppressKeyPress = true; } }; }
public void SelectPreviousItem() { ListBoxUtil.SelectPreviousItem(_memoListBox); }
public void SelectNextItem() { ListBoxUtil.SelectNextItem(_memoListBox); }
void EnsureSelectedLineVisible() { ListBoxUtil.EnsureVisible(this.listBox_biblioDbNames, this.listBox_biblioDbNames.SelectedIndex); }
private void button2_Click(object sender, EventArgs e) { ListBoxUtil.FromListboxToListBox(this.lb_selected, this.lb_WaitSelect); }