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}"/>
  • 相关阅读:
    hdu 1258 DFS
    hdu2488 dfs
    poj1915 BFS
    hdu1372 BFS求最短路径长度
    poj3264 线段树
    hdu 2438Turn the corner 三分
    hdu3714 三分
    【转载】单点登陆
    ajax从入门到深入精通
    Web前端技术体系大全搜索
  • 原文地址:https://www.cnblogs.com/otomii/p/2031550.html
Copyright © 2011-2022 走看看