示例#1
0
 public void SetVariationListBoxScrollOffset(double offset)
 {
     System.Windows.Controls.ScrollViewer scrollViewer = ListBoxUtil.FindScrollViewer(StylesVariationListBox);
     if (scrollViewer != null)
     {
         scrollViewer.ScrollToVerticalOffset(offset);
     }
 }
示例#2
0
        public double GetVariationListBoxScrollOffset()
        {
            var scrollOffset = 0d;
            var scrollViewer = ListBoxUtil.FindScrollViewer(StylesVariationListBox);

            if (scrollViewer != null)
            {
                scrollOffset = scrollViewer.VerticalOffset;
            }
            return(scrollOffset);
        }
示例#3
0
        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();
        }
示例#5
0
        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;
                }
            };
        }
示例#6
0
 public void SelectPreviousItem()
 {
     ListBoxUtil.SelectPreviousItem(_memoListBox);
 }
示例#7
0
 public void SelectNextItem()
 {
     ListBoxUtil.SelectNextItem(_memoListBox);
 }
示例#8
0
 void EnsureSelectedLineVisible()
 {
     ListBoxUtil.EnsureVisible(this.listBox_biblioDbNames, this.listBox_biblioDbNames.SelectedIndex);
 }
示例#9
0
 private void button2_Click(object sender, EventArgs e)
 {
     ListBoxUtil.FromListboxToListBox(this.lb_selected, this.lb_WaitSelect);
 }