Artemis.Styles.DropTargetAdorners.DropTargetMetroInsertionAdorner.DropTargetMetroInsertionAdorner C# (CSharp) Метод

DropTargetMetroInsertionAdorner() статический приватный Метод

static private DropTargetMetroInsertionAdorner ( ) : System
Результат System
        static DropTargetMetroInsertionAdorner()
        {
            // Create the pen and triangle in a static constructor and freeze them to improve performance.
            const int triangleSize = 5;

            var color = (Color) ThemeManager.DetectAppStyle(Application.Current).Item2.Resources["AccentColor"];
            m_Pen = new Pen(new SolidColorBrush(color), 2);
            m_Pen.Freeze();

            var firstLine = new LineSegment(new Point(0, -triangleSize), false);
            firstLine.Freeze();
            var secondLine = new LineSegment(new Point(0, triangleSize), false);
            secondLine.Freeze();

            var figure = new PathFigure {StartPoint = new Point(triangleSize, 0)};
            figure.Segments.Add(firstLine);
            figure.Segments.Add(secondLine);
            figure.Freeze();

            m_Triangle = new PathGeometry();
            m_Triangle.Figures.Add(figure);
            m_Triangle.Freeze();
        }

Same methods

DropTargetMetroInsertionAdorner::DropTargetMetroInsertionAdorner ( UIElement adornedElement ) : System