public BaseBorderViewModel(StreamViewModel stream, PropertyBorderModel border)
        {
            this.Stream      = stream;
            this.borderModel = border;

            videoViewModel = Stream.VideoViewModel;

            SetBorderRegion(borderModel.BorderRect);

            //Color color1 = Color.FromArgb(46, 131, 241);
            //Color color2 = Color.WhiteSmoke;

            //var bitmap = CreateStripesBitmap(new System.Drawing.Size(50, 50), color1, color2);

            //bitmapSource = null;

            //var hBitmap = bitmap.GetHbitmap();

            //try
            //{
            //    bitmapSource = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(
            //        hBitmap,
            //        IntPtr.Zero, System.Windows.Int32Rect.Empty,
            //        BitmapSizeOptions.FromEmptyOptions());
            //}
            //catch (Win32Exception)
            //{
            //    bitmapSource = null;
            //}
            //finally
            //{
            //    NativeMethods.DeleteObject(hBitmap);
            //}
        }
 public DesignBorderViewModel(StreamViewModel stream, PropertyBorderModel border) : base(stream, border)
 {
 }