Inheritance: UIA.Extensions.AutomationProviders.Interfaces.ListItemInformation
Example #1
0
        public void UpdateSelection(ListActingLabelItem toSelect)
        {
            foreach (var selected in _listOptions.Where(x => x.IsSelected && x != toSelect))
            {
                selected.RemoveFromSelection();
            }

            Control.Text = toSelect.Text;
        }
        public void UpdateSelection(ListActingLabelItem toSelect)
        {
            foreach (var selected in _listOptions.Where(x => x.IsSelected && x != toSelect))
            {
                selected.RemoveFromSelection();
            }

            Control.Text = toSelect.Text;
        }
Example #3
0
        public ListActingLabel(Control control) : base(control)
        {
            IsRequired        = true;
            CanSelectMultiple = true;

            _listOptions = new[] { "First Option", "Second Option", "Third Option" }
            .Select(x => ListActingLabelItem.Create(x, this)).ToList();

            _listOptions.First().Select();
        }