Skip to content

Commit

Permalink
add example for Issue #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Karger committed Apr 5, 2013
1 parent 3c372e2 commit 9bf702e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Examples/DefaultsExample/Window1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,5 +505,45 @@
</ListBox.GroupStyle>
</ListBox>
</TabItem>

<TabItem Header="Issue #37">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>

<ListBox Grid.Column="0"
ItemsSource="{Binding Collection1}"
SelectionMode="Extended"
dd:DragDrop.IsDragSource="True"
dd:DragDrop.IsDropTarget="True">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Margin="2"
Text="{Binding Mode=OneWay}"></TextBlock>
<TextBox Grid.Column="1"
Margin="2"
Text="{Binding Mode=OneWay}"></TextBox>
<Slider Grid.Column="2"
Margin="2"
Width="50"></Slider>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<ListBox Grid.Column="1"
ItemsSource="{Binding Collection2}"
dd:DragDrop.IsDragSource="True"
dd:DragDrop.IsDropTarget="True" />
</Grid>
</TabItem>
</TabControl>
</Window>

0 comments on commit 9bf702e

Please sign in to comment.