zoukankan      html  css  js  c++  java
  • silverlight中默认字体与值的对照表【转载】

    Arial是系统自带英文字库,能让字体更清晰

    http://www.cnblogs.com/liaohenchen/archive/2008/11/10/silverlight-combobox-fontfamily.html

    近日在silverlight中想实现一个在combobox选择字体的效果,结果发现没有这方面现成的字体与值的对照表,特整理了一份,与大家共享 

    <ComboBox x:Name="cbFontFamily" SelectionChanged="cbFontFamily_SelectionChanged">
    <ComboBoxItem Content="Arial"  FontFamily="Arial" ></ComboBoxItem>

                                <ComboBoxItem Content="Tahoma"  FontFamily="Tahoma" ></ComboBoxItem>
                                <ComboBoxItem Content="仿宋-GB2312" FontFamily="FangSong_GB2312" ></ComboBoxItem>
                                <ComboBoxItem Content="华文黑体"  FontFamily="SimHei" ></ComboBoxItem>
                                <ComboBoxItem Content="华文彩云"  FontFamily="STCaiyun" ></ComboBoxItem>
                                <ComboBoxItem Content="华文仿宋"  FontFamily="STFangsong" ></ComboBoxItem>
                                <ComboBoxItem Content="华文琥珀"  FontFamily="STHupo" ></ComboBoxItem>
                                <ComboBoxItem Content="华文隶书"  FontFamily="STLiti" ></ComboBoxItem>
                                <ComboBoxItem Content="华文宋体"  FontFamily="STSong" ></ComboBoxItem>
                                <ComboBoxItem Content="华文细黑"  FontFamily="STXihei" ></ComboBoxItem>
                                <ComboBoxItem Content="华文新魏"  FontFamily="STXinwei" ></ComboBoxItem>
                                <ComboBoxItem Content="华文行楷"  FontFamily="STXingkai" ></ComboBoxItem>
                                <ComboBoxItem Content="华文中宋"  FontFamily="STZhongsong" ></ComboBoxItem>
                                <ComboBoxItem Content="楷体-GB2312"  FontFamily="KaiTi_GB2312" ></ComboBoxItem>
                                <ComboBoxItem Content="隶书"  FontFamily="LiSu" ></ComboBoxItem>
                                <ComboBoxItem Content="宋体"  FontFamily="SimSun" ></ComboBoxItem>
                                <ComboBoxItem Content="微软雅黑"  FontFamily="Microsoft YaHei" ></ComboBoxItem>
                                <ComboBoxItem Content="新宋体"  FontFamily="NSimSun" ></ComboBoxItem>
                                <ComboBoxItem Content="幼圆"  FontFamily="YouYuan" ></ComboBoxItem>
                                <ComboBoxItem Content="Arial Unicode MS"  FontFamily="Arial Unicode MS" ></ComboBoxItem>
                                <ComboBoxItem Content="Candara"  FontFamily="Candara" ></ComboBoxItem>
                                <ComboBoxItem Content="Symbol"  FontFamily="Symbol" ></ComboBoxItem>
                                <ComboBoxItem Content="Verdana"  FontFamily="Verdana" ></ComboBoxItem>
                                <ComboBoxItem Content="Latha"  FontFamily="Latha" ></ComboBoxItem>
                            </ComboBox>


    但目前silverlight2 rc(预备正式版)版本中没有selectValue这个属性,还不知道如何获取Combobox选择的值,也许正式版本就有了吧。。

  • 相关阅读:
    Prometheus+Grafana监控
    交互式查询⼯具Impala
    langsong
    linux awk命令详解
    k8s环境下处理容器时间问题的多种姿势
    Golang数据类型之结构体-下篇
    Syntax Error: TypeError: this.getOptions is not a function报错
    百度地图开发-绘制点线提示框 07
    百度地图开发-与地图的交互功能 06
    百度地图开发-实现离线地图功能 05
  • 原文地址:https://www.cnblogs.com/xlyg-14/p/4142454.html
Copyright © 2011-2022 走看看