silverlight中預設字型與值的對照表【轉載】

來源:互聯網
上載者:User

標籤:style   blog   http   io   ar   os   sp   on   log   

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選擇的值,也許正式版本就有了吧。。

silverlight中預設字型與值的對照表【轉載】

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.