Drag/Drop from WPF to Excel - wpf

Does anyone know if it possible to drag and drop an object from WPF to Excel?
It can be either an external WPF application or a WPF project hosted inside an elementhost of an Excel Addin.

I would look at this previous entry and use that to derive what you are looking for:
WPF: Drag and drop virtual files into Windows explorer

Related

Winforms toolbox tools for WPF

I'm new to WPF and I'm wondering is there anyway to have elements from Winforms toolbox in WPF. I mean the Winforms toolbox has a lot of elements and they're not present in WPF toolbox. for example something like PerformanceCounter in Winforms toolbox is not found in WPF toolbox.
thanks in advance
There are some controls that didn't get represented in WPF, but you can use WindowsFormsHost. As the name indicates, it's purpose is to host the Windows Forms elements.
Walkthrough: Hosting a Windows Forms Control in WPF
I would add that things like PerformanceCounter you can use in code, rather than placing it on a form. Other elements which do have a UI purpose can be placed inside a WindowsFormsHost control. I do this with ReportViewer -- it's a Windows Forms control that has no WPF equivalent.

wpf using a windows form

I have a windows form that handles drag and drop of images just fine.Because I cannot find a way to do this in WPF can I add the form to a page and will the drag and drop still work? The images being dragged are from outside of app.
Thanks, Betsy
You can use a WindowsFormsHost in WPF to host Windows Forms controls. This will meet your requirements. Otherwise, take a look at Drag & Drop in WPF. This is fairly easy to implement.

Excel WPF Addin Drag Drop Error

I created a Sidebar in Excel using WPF, and trying to drag some some objects from the WPF Pane to the spreadsheet. The Application object in WPF is null. Please guide me how to Achieve this Drag-Drop simple text from WPF Excel Addin to The spreadsheet.
Thanks in Advance
The answer for this problem is well explained in MSDN article section "Hosting WPF Content in a Microsoft Win32 Window"
This will be for any one who wants to get the power of WPF to build excel addins.

How to create a control like Solution Explorer in Visual Studio?

I want to create control that seems and works like the Solution Explorer of Visual Studio.
I mean not the functionality of solution explorer, the control should be seems like that control. That means, server explorer, toolbox, error List,... All these controls will pop-out when we put mouse and pop-in when we leave. We can lock and unlock those controls also.
So can anyone help me, to get the solution for this problem.
Thanks!!!!!!!!!!!
I am assuming you are using C#/VB.NET for development. The dockpanel suite will provide a docking framework for an application. Basically in terms of dockpanel, it is the forms which can be docked on the application using drag and drop like visual studio.
So create a treeview control in the form and dock it to the parent. You can populate the treeview control based on file directories or any specific needs of your project. Please note in dockpanel you create a form by not inheriting from Form class but from DockContent class. Documentation will give you more insight of how to create applications. It has a good example along with the source code in which it simulates the all the visual studio panes. It also provides and option to save the position of various docks which can act as a user preference. For eg, you may like to position solution explorer on left side whereas i may want it on right side. this get stored in a conf file which gets read next time when you start the application.
Incase you using MFC, then visual studio 2008 SP1 provides you with docking framwork and within that use the treeview control.
XAML also provides a docking framework. But i am not sure, you need to verify.
Win32 API does not have any native docking framework.

Silverlight Toolkit TreeView Drag and Drop

Does any know how to implement drag and drop in the silverlight toolkit's treeview?
I saw the drag and drop manager for silverlight but supposedly you can put containers around the items you want to drag and drop but I wonder how I would do this on another treeviewitem exactly?
Maybe there is a better way or custom way? Thanks!
The Silverlight Toolkit October (09) release (http://silverlight.codeplex.com/) has added support for drag and drop.
There is a great walk though of the new feature here: http://themechanicalbride.blogspot.com/2009/08/new-with-silverlight-toolkit-drag-and.html
One method that should work is using Telerik controls.
First download the telerik controls then add a reference to Telerik.Windows.Controls; that will allow you to use the IsDragnDropEnable property for the source treeview and the .AllowDrop for the Targeted TreeView

Resources