[英]Metro App Glyph Icon Custom Size
How do I override the AppBarButtonStyle
Width/Height
for a custom Button
that I define? 如何覆盖我定义的自定义Button
的AppBarButtonStyle
Width/Height
?
Is it possible to represent a Segoe UI Font Symbol in a control other than Button
? 是否可以在除Button
之外的控件中表示Segoe UI字体符号 ? If so, how? 如果是这样,怎么样?
You can simply create a TextBlock
and set its FontFamily
to Segoe UI Symbol and the text to the code of the glyph you you want shown that you can find in the character map app, eg Text=""
您可以简单地创建一个TextBlock
并将其FontFamily
设置为Segoe UI符号 ,并将文本设置为您希望在字符映射应用程序中找到的字形代码,例如Text=""
. 。 Then change any other properties of your TextBlock
that you desire. 然后更改所需的TextBlock
任何其他属性。
you can do this even in code like this textblock1.Text = ((char)0xE101).ToString();
你甚至可以在像这样的代码中执行此操作textblock1.Text = ((char)0xE101).ToString();
and assign font family as Segoe UI Symbol 并将字体系列指定为Segoe UI Symbol
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.