Reema,
In the main User Control, I include two contentcontrols (cclInvoice and cclExpense). To each, I assign a usercontrol (essentially) a standard ListBox . XAML in the main UserControl:
ContentTemplate="{StaticResource InvoiceTemplate}"
Margin="0,0,0,-30" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
Defined in my main ResourceDictionary: The InvoiceTemplate & ExpenseTemplate:
And finally the Usercontrols (essentially identical at this time, so here is the ExpenseView):
…
ItemsSource="{Binding}"
ItemTemplate="{StaticResource StudentTemplate}" PreviewMouseDown="TextBlock_PreviewMouseDown">
…
The issue, is that once I moved each ListBox into a separate file to include as a UserControl, the dragdrop operation never gets initiated.
I have provided a screenshot showing the ATPInvoiceSelection View; the code behind that populates the ListBoxes (a bit of a mess because I have tried everything); the AtpInvoiceSelectionView (main view) and the ExpenseView.
Hopefully that’s enough information for you to help.
Thanks,
[GC] – source files resubmitted as a zip archive.