Hi,
I have 2 RadListBox I have put a drag and drop event on it and it works!
The probleme is, i have to change value of "IsInGroup" to change the color of the items who change list!
But when i drop items they don't go on the event in "ListBox_Drop" and "ListBox2_Drop"
Code XAML
Code XAML.CS
thank you
I have 2 RadListBox I have put a drag and drop event on it and it works!
The probleme is, i have to change value of "IsInGroup" to change the color of the items who change list!
But when i drop items they don't go on the event in "ListBox_Drop" and "ListBox2_Drop"
Code XAML
<
telerik:RadListBox
AllowDrop
=
"True"
x:Name
=
"ListBox" Drop="ListBox_Drop"
SelectionMode
=
"Extended"
SelectedItem
=
"{Binding SelectedClientAssigned, Mode=TwoWay}"
ItemsSource
=
"{Binding ClientAssignedList}"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Stretch"
>
<
telerik:RadListBox.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Alias}"
Style
=
"{Binding IsInGroup, Converter={StaticResource StyleFunctionConverter}}"
/>
</
DataTemplate
>
</
telerik:RadListBox.ItemTemplate
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
<
telerik:RadListBox
AllowDrop
=
"True"
x:Name
=
"ListBox2" Drop="ListBox2_Drop"
SelectionMode
=
"Extended"
SelectedItem
=
"{Binding SelectedClientNotAssigned, Mode=TwoWay}"
ItemsSource
=
"{Binding ClientNotAssignedList}"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Stretch"
>
<
telerik:RadListBox.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Alias}"
Style
=
"{Binding IsInGroup, Converter={StaticResource StyleFunctionConverter}}"
/>
</
DataTemplate
>
</
telerik:RadListBox.ItemTemplate
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
Code XAML.CS
private void ListBox2_Drop(object sender, Telerik.Windows.DragDrop.DragEventArgs e)
{
...
}
private void ListBox_Drop(object sender, Telerik.Windows.DragDrop.DragEventArgs e)
{
...
}
thank you