Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# SkiaSharp SVG单击元素获取id_C#_Svg_Skia_Skiasharp - Fatal编程技术网

C# SkiaSharp SVG单击元素获取id

C# SkiaSharp SVG单击元素获取id,c#,svg,skia,skiasharp,C#,Svg,Skia,Skiasharp,假设我有如下svg文档: "<svg height='300' width='300'><rect class='rect us' id='12212' x='34' y='54' width='20' height='20'/><rect class='rect us' id='12213' x='64' y='54' width='20' height='20'/></svg> ” 是否可以按给定点点击test SVGElements并获

假设我有如下svg文档:

 "<svg height='300' width='300'><rect class='rect us' id='12212' x='34' y='54' width='20' height='20'/><rect class='rect us' id='12213' x='64' y='54' width='20' height='20'/></svg>

是否可以按给定点点击test SVGElements并获取此元素的id?如果可以,我如何完成此任务?我在谷歌上搜索了一下,但什么也找不到。

这不是带有所有这些js/html/dom或其他东西的web开发人员。我正在Xamarin中编写android应用程序。SkiaSharp支持呈现SVG,并且工作正常,我可以加载svg和渲染位图,现在我想让我的矩形可以点击。你成功了吗?我需要同样的东西。谢谢你试过使用一个吗?