0

Is it possible to create a control like this? I've tried so much, but I can't create a control exactly like this.

5

1 Answer 1

1

It is super easy to do in WPF once you have a fair grounding in the technology. You need to understand the following key concepts :

Control creation overview : http://msdn.microsoft.com/en-us/library/ms745025.aspx I recommend you use a UserControl for this simple task.

DataContext : http://msdn.microsoft.com/en-us/library/ms752347.aspx

Sign up to request clarification or add additional context in comments.

3 Comments

thanq sir but we have already started our project in winforms. we where in the middle of the project... Is there any way that i can host these custom WPF components in Winform?? Even if such hosting is possible does it supports drag and drop between winforms and WPF.... I need ur kind advice....
It is possible to host WPF components in winforms : msdn.microsoft.com/en-us/library/ms742215.aspx And drag and drop works as well.
So far i've created a tree like this imageshack.us/photo/my-images/845/sofara.jpg using draw text in OwnerDrawnTextMode and also a custom control for the tree like imageshack.us/photo/my-images/707/newaqg.jpg I've lagging in the node bounds, i cant able to change the node bounds.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.