日期:2014-05-17  浏览次数:20965 次

WPF,Blend设计的模板怎么不能兼容呢?

 <Style TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <Path x:Name="button1" Data="M304,351 C293.916,356.357 282.8,357.002 280,371 C276.186,390.069 275.935,394.407 296,409 C308.783,418.297 320.28,414 337,414 C345.913,414 350.616,413.354 359,410 C365.706,407.317 369.463,405.806 374,399 C387.766,378.351 394.193,281.831 301,352" Stretch="Fill" UseLayoutRounding="False">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Black"/>
                                        <GradientStop Color="#FF9AF0A1" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                                <Path.Stroke>