WEB开发网
开发学院图形图像Flash 学Silverlight 2系列(18):综合实例之RSS阅读器... 阅读

学Silverlight 2系列(18):综合实例之RSS阅读器

 2008-10-03 11:35:30 来源:WEB开发网   
核心提示: <Style x:Key="button" TargetType="Button"><Setter Property="Width" Value="100"></Setter>

<Style x:Key="button" TargetType="Button">
  <Setter Property="Width" Value="100"></Setter>
  <Setter Property="Height" Value="35"></Setter>
  <Setter Property="Background" Value="#FBA430"></Setter>
  <Setter Property="Foreground" Value="#FBA430"></Setter>
  <Setter Property="FontSize" Value="16"></Setter>
</Style>
<Style x:Key="titleBorder" TargetType="Border">
  <Setter Property="CornerRadius" Value="10"></Setter>
  <Setter Property="Width" Value="220"></Setter>
  <Setter Property="Height" Value="40"></Setter>
  <Setter Property="Background">
    <Setter.Value>
      <LinearGradientBrush StartPoint="0,0">
        <GradientStop Color="#FBA430" Offset="0.0" />
        <GradientStop Color="#FEF4E7" Offset="0.5" />
        <GradientStop Color="#FBA430" Offset="1.0" />
      </LinearGradientBrush>
    </Setter.Value>
  </Setter>
</Style>
定义分割线,用Rectangle来表示:<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center">
  <Rectangle Style="{StaticResource rectangle}"/>
</StackPanel>

为了显示出渐变的样式,我们定义样式如下:

上一页  1 2 3 4 5  下一页

Tags:Silverlight 系列 综合

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接