tags:

views:

31

answers:

0

Hello, is there any possibility to draw outside of an wpf element with a brush, E.g.

        <Polyline StrokeThickness="10" Points="100,100 200,100 200,0">
            <Polyline.Stroke>
                <VisualBrush >
                    <VisualBrush.Visual>
                        <Rectangle Stroke="Red" Height="500" Width="500"></Rectangle>
                    </VisualBrush.Visual>
                </VisualBrush>
            </Polyline.Stroke>
        </Polyline> 

Is there a way for visual brush to draw outside of polyline stroke? (I think adorners can draw outside the bouding box of an element.)