
WPF界面设计,模仿了金山卫士,360,鲁大师的界面!
<!--无边框窗体-->
<Style x:Key="NoResize_window" TargetType="{x:Type Window}">
<Setter Property="AllowsTransparency" Value="true"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontFamily" Value="Consolas, Microsoft YaHei"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="ResizeMode" Value="NoResize"/>
<Setter Property="WindowStyle" Value="None"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Window}">
<Grid Margin="10">
<Rectangle Fill="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
RadiusX="3" RadiusY="3">

这篇博客介绍了如何使用WPF进行界面设计,通过模仿金山卫士和360安全软件的界面,展示了WPF在构建用户界面时的灵活性和功能。博主探讨了setter和border等关键元素在设计过程中的应用。
最低0.47元/天 解锁文章
9204

被折叠的 条评论
为什么被折叠?



