【.Net码农】WPF界面设计—撸大师
来源:互联网 发布:淘宝一键好复制怎么用 编辑:程序博客网 时间:2024/04/30 01:53
http://blog.csdn.net/cmis7645/article/details/7562833
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">
- <Rectangle.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#FF898989"/>
- </Rectangle.Effect>
- </Rectangle>
- <Border Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Padding="{TemplateBinding Margin}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
- CornerRadius="3">
- <ContentPresenter />
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--TabControl样式资源-->
- <Style x:Key="TabControlStyle" TargetType="{x:Type TabControl}">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="Padding" Value="4,4,4,4"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="BorderBrush" Value="#8C8E94"/>
- <Setter Property="Background" Value="#F9F9F9"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabControl}">
- <Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">
- <Grid.RowDefinitions>
- <RowDefinition x:Name="RowDefinition0" Height="Auto" MinHeight="102.5"/>
- <RowDefinition x:Name="RowDefinition1"/>
- </Grid.RowDefinitions>
- <Border x:Name="ContentPanel" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">
- <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Border>
- <Canvas x:Name="HeaderPanel" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" IsItemsHost="True"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
0 0
- 【.Net码农】WPF界面设计—撸大师
- WPF界面设计—撸大师
- .NET wpf界面设计教程-调用3DMAX直升机
- WPF界面设计技巧 系列
- WPF界面设计的方式
- WPF界面设计的方法
- WPF界面设计的模式
- (WPF)360安全卫士界面设计
- C# wpf界面设计基本知识
- WPF炫酷界面设计
- WPF界面设计知识点整理
- 未来界面设计的主流——WPF技术
- WPF界面设计技巧(1)—不规则窗体图文指南
- WPF界面设计技巧—实现不规则动画按钮
- 【.Net码农】WPF组件开发
- [好文章要分享]WPF界面设计技巧(1)—不规则窗体图文指南
- WPF下的视频录制界面设计
- 未来界面设计的主流 WPF技术
- RFID第二次作业——【5-1】简述智能卡的发展,以及射频电子标签在其中所处的位置
- ngClass
- ROS之mocap_optitrack
- 如何把列表转内容转至拼音首字母归档排序
- ExtJS初探:在项目中使用ExtJS
- 【.Net码农】WPF界面设计—撸大师
- UVa 1511 - Soju (思维)
- C++中const用法总结
- C++文件操作详解(ifstream、ofstream、fstream)
- 论C语言的malloc,calloc,new,realloc,alloca的机制和区别
- ubuntu配置android开发所需环境变量
- 【.Net码农】WPF界面—仿360安全卫士9.0界面
- 尹成老师,关于链表的一些操作(C)
- BPMN使用工具