{ Bitmap bmp = CustomBA.Properties.Resources.logo; return System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(), IntPtr.Zero, System.Windows.Int32Rect.Empty, BitmapSizeOptions.FromWidthAndHeight(bmp.Width, bmp.Height)); } } /// <summary> /// 自定义安装路径的控件...