我尝试从FontIcon类添加一些基本提供的图标,用于通用Windows 10应用程序(我们可以在appbar中看到的那些).当运行这段代码时,它运行没有任何问题,但实际上,它显示了一些边框方块,例如无法识别的表情字符.
Button infoButton = new Button();
infoButton.Content = new FontIcon
{
FontFamily = new FontFamily("Segoe MDL2 Assets"),
Glyph = "",
Foreground = new SolidColorBrush(Colors.WhiteSmoke)
};
Run Code Online (Sandbox Code Playgroud) 我试图弄清楚如何在应用程序上有一个透明的背景,让用户看到它背后.我试图改变background和opacity在参数xaml文件中,但什么都没有改变.
我也在背景中设置了透明图像
<Page.Background>
<ImageBrush Stretch="Fill" ImageSource="Assets/fond.png"/>
</Page.Background>
Run Code Online (Sandbox Code Playgroud)
但它不起作用
有谁知道如何执行此操作?