Esempio n. 1
0
        private void OnListBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (_handlingListBoxSelectionChanged)
            {
                return;
            }

            _handlingListBoxSelectionChanged = true;

            try
            {
                SetCurrentValue(SelectedColorItemsProperty, GetSelectedList());
                SelectionChanged.SafeInvoke(sender, e);
            }
            finally
            {
                _handlingListBoxSelectionChanged = false;
            }
        }
 private void ResultsGrid_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     SelectionChanged.SafeInvoke();
 }