多个DrawingBrush重用的XAML路径

时间:2016-04-18 12:47:48

标签: xaml

这应该不是那么难,但那是你的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>

0 个答案:

没有答案