I am using RadSplitButton displayed in list box and want to do drag-drop for rad splitbutton and not for Listbox item.
I have following xaml code and when I try to drag the radsplitbutton it is not showing me any drag operation.
<ListBox ItemsSource="{Binding NavigationPanelMetaItems}" Tag="InfoPanel">
<ListBox.ItemTemplate>
<DataTemplate>
<!--<StackPanel Orientation="Horizontal">
<Image Stretch="Fill" Height="16" Width="16" Source="{Binding ImagePath}" />
<Path Data="{Binding ShapeGeometry}" Fill="{Binding Brush}" Stretch="Fill" Width="25" Height="25"/>
<TextBlock Text="{Binding Name, Mode=TwoWay}" Margin="5" />
</StackPanel> -->
<telerikRibbonBar:RadRibbonSplitButton DropDownIndicatorVisibility="{Binding ShowDropDown, Converter={StaticResource VisibilityConverter}}"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center" dragDrop:RadDragAndDropManager.AllowDrag="True">
<telerikRibbonBar:RadRibbonSplitButton.Content>
<StackPanel Orientation="Horizontal">
<Path Data="{Binding ShapeGeometry}" Fill="{Binding Brush}" Stretch="Fill" Width="25" Height="25"/>
<TextBlock Text="{Binding Name, Mode=TwoWay}" Margin="5" />
</StackPanel>
</telerikRibbonBar:RadRibbonSplitButton.Content>
<telerikRibbonBar:RadRibbonSplitButton.DropDownContent>
<radNavigation:RadContextMenu BorderThickness="0">
<radNavigation:RadMenuItem Header="Shape1" Width="300">
</radNavigation:RadMenuItem>
<radNavigation:RadMenuItem Header="Shape2" Width="300">
</radNavigation:RadMenuItem>
</radNavigation:RadContextMenu>
</telerikRibbonBar:RadRibbonSplitButton.DropDownContent>
</telerikRibbonBar:RadRibbonSplitButton>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Margin" Value="10,0,10,0" />
<Setter Property="Padding" Value="3"/>
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Top"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="TabNavigation" Value="Local"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Grid Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Left" Margin="{TemplateBinding Padding}" x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
Can you help me in this so drag operation should get started. I have required code in ApplicationDragDrop.cs file which works properly for other controls like TreeView.
-Rajesh