我已将svg文件转换为xaml文件,但是使用Inkscape说未知的超链接标记。 我有图像:
我想要的是每个房间都应该有点击事件。
示例xaml代码是:
<Grid>
<Rectangle Stretch="Fill">
<Rectangle.Fill>
<DrawingBrush>
<DrawingBrush.Drawing><DrawingGroup x:Name="Rooms" svg:SvgObject.Id="Rooms" >
<DrawingGroup x:Name="lobby11" Opacity="1" svg:SvgLink.Key="lobby11" svg:SvgLink.Action="LinkNone" svg:SvgObject.Id="lobby11" svg:SvgObject.Type="Link">
<DrawingGroup>
<GeometryDrawing Brush="#FFE6E6E6">
<GeometryDrawing.Geometry>
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="291.682,19.979,61.042,36.067" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing Brush="#FF000000">
<GeometryDrawing.Geometry>
<PathGeometry FillRule="Nonzero" Figures="M352.031,20.672L352.031,55.359 292.375,55.359 292.375,20.672 352.031,20.672 M353.418,19.285L290.988,19.285 290.988,56.743 353.418,56.743 353.418,19.285 353.418,19.285z" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingGroup>
<DrawingGroup x:Name="lobby12" Opacity="1" svg:SvgLink.Key="lobby12" svg:SvgLink.Action="LinkNone" svg:SvgObject.Id="lobby12" svg:SvgObject.Type="Link">
<DrawingGroup>
<GeometryDrawing Brush="#FFE6E6E6">
<GeometryDrawing.Geometry>
<RectangleGeometry RadiusX="0" RadiusY="0" Rect="298.296,386.271,45.481,51.232" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing Brush="#FF000000">
<GeometryDrawing.Geometry>
<PathGeometry FillRule="Nonzero" Figures="M343.261,387.255L343.261,436.527 298.813,436.527 298.813,387.255 343.261,387.255 M344.294,385.285L297.779,385.285 297.779,438.493 344.294,438.493 344.294,385.285 344.294,385.285z" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</Grid>