zoukankan      html  css  js  c++  java
  • WP7备注(15)(Resources)

    资源存放地点:

    <phone:PhoneApplicationPage>
    <phone:PhoneApplicationPage.Resources>
    </phone:PhoneApplicationPage.Resources>
    </phone:PhoneApplicationPage>
    <Application>
    <Application.Resources>
    </Application.Resources>
    </Application>

    资源示例:

    <phone:PhoneApplicationPage.Resources>
    <Style x:Key="txtblkStyle"
    TargetType="TextBlock">
    <Setter Property="HorizontalAlignment" Value="Center" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Margin" Value="12 96" />
    <Setter Property="FontSize" Value="48" />
    <Setter Property="Foreground">
    <Setter.Value>
    <LinearGradientBrush>
    <GradientStop Offset="0" Color="Pink" />
    <GradientStop Offset="1" Color="SkyBlue" />
    </LinearGradientBrush>
    </Setter.Value>
    </Setter>
    </Style>
    </phone:PhoneApplicationPage.Resources>
    <TextBlock Text="Hello, Windows Phone 7!" Style="{StaticResource txtblkStyle}"/>
  • 相关阅读:
    axios基础用法
    CSS盒子模型
    前端跨域问题解决方案
    跨域-iframe
    swagger UI配置
    React安装和启动
    React 学习笔记
    redis学习笔记
    10个排序算法,待更新
    docker常用命令,持续更新。。。
  • 原文地址:https://www.cnblogs.com/otomii/p/2031550.html
Copyright © 2011-2022 走看看