开发者

Pathfigure in wpf

开发者 https://www.devze.com 2023-03-23 21:37 出处:网络
How to get exact Pathfigure instance once we click on a Path? My Path has multiple pathFigures. I have following Xaml code:

How to get exact Pathfigure instance once we click on a Path? My Path has multiple pathFigures. I have following Xaml code:

    <Path Stroke="Black">
        <Path.Data>
            <PathGeometry>
                <PathFigure StartPoint="5,5">
                    <LineSegment Point="10,10"/>
                    <LineSegment Point="20,60"/>
                    <LineSegment Point="70,90"/>
                </PathFigure>
             开发者_如何学JAVA   <PathFigure StartPoint="20,60">
                    <LineSegment Point="30,20"/>
                    <LineSegment Point="40,70"/>
                    <LineSegment Point="70,80"/>
                </PathFigure>
            </PathGeometry>
        </Path.Data>
    </Path>


Have a look at Hit Testing Geometry

0

精彩评论

暂无评论...
验证码 换一张
取 消