private void tileLayoutControl1_Drop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent("GridToLC")) { ExampleObject obj = e.Data.GetData("GridToLC") as ExampleObject; TileLayoutControl tileLayout = sender as TileLayoutControl; (tileLayout.ItemsSource as ObservableCollection <ExampleObject>).Add(obj); } }
private void gridControl1_Drop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent("LCToGrid")) { ExampleObject obj = e.Data.GetData("LCToGrid") as ExampleObject; GridControl grid = sender as GridControl; (grid.ItemsSource as ObservableCollection <ExampleObject>).Add(obj); } }