新建WPF窗口文件,.net6框架
app.xaml为入口 主要编写在 mainwindow
WindowStartupLocation="CenterScreen" //设置显示在屏幕中心
Background="Transparent" //背景透明
FontFamily="Microsoft YaHei" //字体样式FontSize="12" FontWeight="ExtraLight"
Title="自动化生产" Height="700" Width="1150">
<WindowChrome.WindowChrome>
<WindowChrome GlassFrameThickness="-1"/> //无边框
</WindowChrome.WindowChrome>
<Grid>
<TextBlock Text="Test"/> //名称
CS0579 System.Reflection.AssemblyVersionAttribute 特性重复
【Properties】中AssemblyInfo.cs文件 进行注释 文字。图片生成操作为【资源】
控制背景颜色,光圈范围
两者都行
晚安~