这应该不是那么难,但那是你的XAML。如果我有这条道路:
<Path x:Key="SomeShape" Data="..." />
如何在DrawingBrush中引用它(我被限制使用DrawingBrushes):
<DrawingBrush>
<DrawingBrush.Drawing>
<GeometryDrawing Brush="{StaticResource SomeBrush}" Geometry="{StaticResource SomeShape_Nope}">
<!--Just put the path here dammit -->
</GeometryDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>