From today on, I will learn WPF, also I will write something in here.
1, Menu, ToolBar and StatusBar can put anywhere position in the window.
2, The default value of width and height is Auto, that mean this control can auto size, but the Width and Height property return value is NaN.
3, Wpf use System.Windows.Media.Imaging.BitmapSource instead of System.Drawing.Bitmap, but you should convert, like
public static System.Windows.Media.Imaging.BitmapSource loadBitmap(System.Drawing.Bitmap source)
{
return Imaging.CreateBitmapSourceFromHBitmap(source.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
}
4, Wpf use System.Windows.Input.MouseEventArgs instead of System.Windows.Forms.MouseEventArgs, but new one don't have X and Y, you should use
System.Windows.Point point= e.GetPosition((IInputElement)this);
and then use point.X, point.Y
These are something different between Wpf window and Original form.