麻烦动画SolidColorBrush

时间:2011-04-05 07:52:46

标签: .net-4.0 wpf-4.0

我有以下代码:

<Grid.Background>
                <DrawingBrush Stretch="Uniform">
                    <DrawingBrush.Drawing>
                        <DrawingGroup>
                            <GeometryDrawing Brush="{Binding Path=SegmentBackground, ElementName=Segment, Mode=OneWay}" x:Name="SegmentDrawing" Geometry="M 278.229,141.688C 278.229,128.798 276.451,116.324 273.128,104.497L 228.906,122.309C 230.417,128.8 231.216,135.565 231.216,142.517C 231.216,147.98 230.723,153.328 229.778,158.518L 275.262,170.2C 277.206,161.002 278.229,151.464 278.229,141.688 Z ">
                                <GeometryDrawing.Pen>
                                    <Pen LineJoin="Round" Brush="#FF000000"/>
                                </GeometryDrawing.Pen>
                            </GeometryDrawing>
                        </DrawingGroup>
                    </DrawingBrush.Drawing>
                </DrawingBrush>
            </Grid.Background>

我的问题很简单,我想设置GeometryDrawingBrush的Brush属性的动画。 绘图是我控制的主要视觉效果,我想要改变画笔的颜色以反映它的状态(正常,结束等)。

0 个答案:

没有答案