zoukankan      html  css  js  c++  java
  • WP7备注(17)(TextBlock和Inlines)

    Code实例:

    TextBlock textBlock = new TextBlock();
    Run run = new Run();
    textBlock.Inlines.Add(run);

    Xaml实例:

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <TextBlock FontSize="24">
    <Run FontFamily="Arial">Arial</Run><LineBreak />
    <Run FontFamily="Arial Black">Arial Black</Run><LineBreak />
    <Run FontFamily="Calibri">Calibri</Run><LineBreak />
    <Run FontFamily="Comic Sans MS">Comic Sans MS</Run><LineBreak />
    <Run FontFamily="Courier New">Courier New</Run><LineBreak />
    <Run FontFamily="Georgia">Georgia</Run><LineBreak />
    <Run FontFamily="Lucida Sans Unicode">Lucida Sans Unicode</Run><LineBreak />
    <Run FontFamily="Portable User Interface">Portable User
    Interface</Run><LineBreak />
    <Run FontFamily="Segoe WP">Segoe WP</Run><LineBreak />
    <Run FontFamily="Segoe WP Black">Segoe WP Black</Run><LineBreak />
    <Run FontFamily="Segoe WP Bold">Segoe WP Bold</Run><LineBreak />
    <Run FontFamily="Segoe WP Light">Segoe WP Light</Run><LineBreak />
    <Run FontFamily="Segoe WP Semibold">Segoe WP Semibold</Run><LineBreak />
    <Run FontFamily="Segoe WP SemiLight">Segoe WP SemiLight</Run><LineBreak />
    <Run FontFamily="Tahoma">Tahoma</Run><LineBreak />
    <Run FontFamily="Times New Roman">Times New Roman</Run><LineBreak />
    <Run FontFamily="Trebuchet MS">Trebuchet MS</Run><LineBreak />
    <Run FontFamily="Verdana">Verdana</Run><LineBreak />
    <Run FontFamily="Webdings">Webdings</Run> (Webdings)
    </TextBlock>
    </Grid>
  • 相关阅读:
    wpf之ComboBox绑定
    初始WPF
    WinForm 中 comboBox控件之数据绑定
    C# 操作注册表
    VS创建Web项目的两种形式WebSite和WebApplicationd的区别!
    网页加载慢的问题及部分解决办法
    获取CPU序列号
    53种使网页增速的方法、工具和资源
    Server Application Error报错解决方案
    20个使Web开发更高效的工具列表
  • 原文地址:https://www.cnblogs.com/otomii/p/2031759.html
Copyright © 2011-2022 走看看