Exemple #1
0
        private void TabBodyBox_D2DPaint(D2DGraphics g)
        {
            RawRectangleF rect    = new RawRectangleF(0, 0, tabBodyBox.Width, tabBodyBox.Height);
            PathGeometry  pathGeo = DrawUtils.CreateOutlineRoundRectGeometry(g, rect, 6);

            RawColor4       rawColor = GDIDataD2DUtils.TransToRawColor4(Color.FromArgb(255, 191, 152, 90));
            SolidColorBrush brush    = new SolidColorBrush(g.RenderTarget, rawColor);

            g.RenderTarget.FillGeometry(pathGeo, brush);
        }