How to drag from wpf treeview and drop on winform control? - c#

I am using EasyGis.net shape file and my application is a wpf . I am using a treeview in wpf and shapefile which is a winform control.
I want to know that how can i do drag an item from treeview and drop on the winform shapefile control?

You can create an invisible border around the winform control to get the drop functionality and then if the winform control has methods to add and show the markers use those methods

Related

c# zindex problem when using wpf and winform mixed

wpf_winform:
I am programming based on wpf and working to display winform window using winform host.
But I want to display the wpf control on top of the winform, but it doesn't show with zindex.
In case of Winform, shape file world map is displayed as EGIS.controls.SFMap.
I want to display the controls of wpf on the winform screen drawn through system.drawing.
Help... plz

C# User control - Drag and drop and custom propertis

I have simple user control in VS2017 (picture below)
User control
Now I wont to use this control in my application using
drag and drop. Not in VS toolbox but in application.
Additionally I want to have properties window like in picture above
in my application. The questions are:
How to get properties window like in picture above when user drag and
drop control in application for example user put this control in container
in application?
What code I need to allow user for drag and drop control?
You can give me example or link to tutorials and the I will try to write all code.
Concerning question 1:
if you want to show such a property window in your application, you have to write it yourself and get all properties and their values using reflection.

C# WPF reset tab order of controls at runtime

I'm developing a WPF application where I have various controls (both out of the box WPF controls and some Telerik controls). In one of the sections of the application is a grid with various items that can be dragged around to rearrange the position of the item on the grid in relation to other items.
When loading up the application the default tab order goes through all the various controls as expected and once it reaches the grid section it sequentially tabs through each control from top left down to the bottom right - as expected.
Then after I drag one of the items within the grid to another location all of the items shuffle along however when I try to tab through the items it does not recognise the new order of the tiles.
My question is, how am I able to reset the tabbing order on the controls to reflect the latest position of them within the grid?
Notes:
The controls which I am using are built for drag and drop.
The control is called a RadTileView (Telerik control), the sub-items which I am dragging and dropping are called RadTileViewItems
I don't believe that their is anything within the Telerik documentation that addresses this specifically
Surely this isn't a Telerik only problem; as it is possible to create custom drag and drop functionality within WPF so this would possibly be an issue there too.
I am currently implementing MVVM.

Custom Control chart on panel in c#

how to create a custom control chart in c# using vs2015. i want it to create on panel but need it start from bottom not start form up. thanks in advance.

Attach winform scrollbar to textbox

Just started develop an application in c# using winforms metro ui and I can't figure out how to use a metroscrollbar with a metro textbox. If i go under properties when selecting the textbox i can choose scrollbar but it shows the normal Windows form..
Please see the picture down below:
How can I use the Metro scrollbar instead of the normal scrollbar?

Categories