What would be the best WPF control in C# (VS 2008) that you can place on a form that would allow you to do drawing similar to the ‘Paint’ function for the CWnd class in C++? Also, that could display bitmaps, have a scroll bar, and the ability to accept user inputs (ie. MouseMove, Button Clicks, etc…). Basically all the functionality of a CWnd in a control on a WPF form?
Share
The UIElement is the lowest level element that supports input and drawing. Although, using WPF, you really have to do a lot less manual drawing. Are you sure that you need to do this? Also, the scroll bar will never be inherit in your element. If you need scrolling behavior, just wrap your element in a ScrollViewer.