コード例 #1
0
        private static void OnTextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            ItemSelector thisSelector = (sender as ItemSelector);

            if (null == thisSelector)
            {
                return;
            }
            thisSelector.UpdateTextDisplay();
        }
コード例 #2
0
        public DefaultSelectorLink(ItemSelector selector)
        {
            if (selector == null)
            {
                throw new ArgumentNullException("controller"); //NOXLATE
            }

            _selector = selector;

            InitializeComponent();

            mLink.LostFocus += OnLinkLostFocus;
            mPopUp.KeyUp    += OnPopupKeyUp;
        }
コード例 #3
0
 public SelectContext(ItemSelector parent)
 {
     Parent      = parent;
     SelectItems = new ObservableCollection <SelectItem>();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of Autodesk.IM.UI.Rule.LiteralSelectContext class
 /// with specified ItemSelector instance as parent.
 /// </summary>
 /// <param name="parent">The specified ItemSelector instance as parent.</param>
 public LiteralSelectContext(ItemSelector parent)
     : base(parent)
 {
 }