-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
24 lines (22 loc) · 1.21 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
x:Class="How_to_Drag_and_Drop_Between_GridControl_and_ListBoxEdit.MainWindow"
Title="MainWindow" Height="350" Width="650">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="200"/>
</Grid.ColumnDefinitions>
<dxg:GridControl Name="gridControl" AutoGenerateColumns="AddNew" EnableSmartColumnsGeneration="True">
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" AllowDragDrop="True" DragRecordOver="OnDragRecordOver" />
</dxg:GridControl.View>
</dxg:GridControl>
<dxe:ListBoxEdit Name="listBoxEdit" Grid.Column="1" Width="150" Margin="25,0"
dx:ListBoxDragDropBehavior.AllowDragDrop="True"
dx:ListBoxDragDropBehavior.DragRecordOver="OnDragRecordOver" />
</Grid>
</Window>