Example #1
0
 public Selector()
 {
     this.SelectedItems = new ObservableCollection <object>();
     AddHandler(Selector.SelectedEvent, new RoutedEventHandler((s, args) => this.OnItemSelectionChangedCore(args, false)));
     AddHandler(Selector.UnSelectedEvent, new RoutedEventHandler((s, args) => this.OnItemSelectionChangedCore(args, true)));
     _selectedMemberPathValuesHelper = new ValueChangeHelper(this.OnSelectedMemberPathValuesChanged);
     _valueMemberPathValuesHelper    = new ValueChangeHelper(this.OnValueMemberPathValuesChanged);
 }
Example #2
0
        /// <summary>Initializes a new instance of the Selector class.</summary>
        public Selector()
        {
            SelectedItems = new ObservableCollection <object>();
            RoutedEvent        selectedEvent = SelectedEvent;
            RoutedEventHandler handler       = delegate(object s, RoutedEventArgs args)
            {
                OnItemSelectionChangedCore(args, false);
            };

            AddHandler(selectedEvent, handler);
            AddHandler(UnSelectedEvent, (RoutedEventHandler) delegate(object s, RoutedEventArgs args)
            {
                OnItemSelectionChangedCore(args, true);
            });
            _selectedMemberPathValuesHelper = new ValueChangeHelper(OnSelectedMemberPathValuesChanged);
            _valueMemberPathValuesHelper    = new ValueChangeHelper(OnValueMemberPathValuesChanged);
        }
Example #3
0
 public CheckComboBox()
 {
     Keyboard.AddKeyDownHandler(this, OnKeyDown);
     Mouse.AddPreviewMouseDownOutsideCapturedElementHandler(this, OnMouseDownOutsideCapturedElement);
     _displayMemberPathValuesChangeHelper = new ValueChangeHelper(this.OnDisplayMemberPathValuesChanged);
 }