public static void OnListBoxPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { RadGridView grid = dependencyObject as RadGridView; System.Windows.Controls.ListBox listBox = e.NewValue as System.Windows.Controls.ListBox; if (grid != null && listBox != null) { SelectedCellsBindingBehavior behavior = new SelectedCellsBindingBehavior(grid, listBox); } }
public static void OnListBoxPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { RadGridView grid = dependencyObject as RadGridView; System.Windows.Controls.ListBox listBox = e.NewValue as System.Windows.Controls.ListBox; if (grid != null && listBox != null) { SelectedCellsBindingBehavior behavior = new SelectedCellsBindingBehavior(grid, listBox); } }