3

单击路径后如何获得确切的 Pathfigure 实例?我的路径有多个路径图。我有以下 Xaml 代码:

    <Path Stroke="Black">
        <Path.Data>
            <PathGeometry>
                <PathFigure StartPoint="5,5">
                    <LineSegment Point="10,10"/>
                    <LineSegment Point="20,60"/>
                    <LineSegment Point="70,90"/>
                </PathFigure>
                <PathFigure StartPoint="20,60">
                    <LineSegment Point="30,20"/>
                    <LineSegment Point="40,70"/>
                    <LineSegment Point="70,80"/>
                </PathFigure>
            </PathGeometry>
        </Path.Data>
    </Path>
4

1 回答 1

2

看看命中测试几何

于 2011-07-31T07:46:06.580 回答