【.Net码农】WPF界面设计—撸大师

http://blog.csdn.net/cmis7645/article/details/7562833



WPF界面设计,模仿了金山卫士,360,鲁大师的界面!


[html]  view plain copy
  1.     <!--无边框窗体-->  
  2.     <Style x:Key="NoResize_window" TargetType="{x:Type Window}">    
  3.     <Setter Property="AllowsTransparency" Value="true"/>    
  4.     <Setter Property="Background" Value="Transparent"/>    
  5.     <Setter Property="FontFamily" Value="Consolas, Microsoft YaHei"/>    
  6.     <Setter Property="FontSize" Value="24"/>    
  7.     <Setter Property="ResizeMode" Value="NoResize"/>    
  8.     <Setter Property="WindowStyle" Value="None"/>    
  9.     <Setter Property="Template">    
  10.         <Setter.Value>    
  11.             <ControlTemplate TargetType="{x:Type Window}">    
  12.                 <Grid Margin="10">    
  13.                     <Rectangle Fill="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"    
  14.                         RadiusX="3" RadiusY="3">    
  15.                         <Rectangle.Effect>    
  16.                             <DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#FF898989"/>    
  17.                         </Rectangle.Effect>    
  18.                     </Rectangle>    
  19.                     <Border Background="{TemplateBinding Background}"    
  20.                         BorderBrush="{TemplateBinding BorderBrush}"    
  21.                         BorderThickness="{TemplateBinding BorderThickness}"    
  22.                         Padding="{TemplateBinding Margin}"    
  23.                         SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"    
  24.                         CornerRadius="3">    
  25.                         <ContentPresenter />    
  26.                     </Border>    
  27.                 </Grid>    
  28.             </ControlTemplate>    
  29.         </Setter.Value>    
  30.     </Setter>    
  31. </Style>    

[html]  view plain copy
  1. <!--TabControl样式资源-->  
  2. <Style x:Key="TabControlStyle" TargetType="{x:Type TabControl}">  
  3.     <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>  
  4.     <Setter Property="Padding" Value="4,4,4,4"/>  
  5.     <Setter Property="BorderThickness" Value="1"/>  
  6.     <Setter Property="BorderBrush" Value="#8C8E94"/>  
  7.     <Setter Property="Background" Value="#F9F9F9"/>  
  8.     <Setter Property="HorizontalContentAlignment" Value="Center"/>  
  9.     <Setter Property="VerticalContentAlignment" Value="Center"/>  
  10.     <Setter Property="Template">  
  11.         <Setter.Value>  
  12.             <ControlTemplate TargetType="{x:Type TabControl}">  
  13.                 <Grid ClipToBounds="true" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local">  
  14.                     <Grid.RowDefinitions>  
  15.                         <RowDefinition x:Name="RowDefinition0" Height="Auto" MinHeight="102.5"/>  
  16.                         <RowDefinition x:Name="RowDefinition1"/>  
  17.                     </Grid.RowDefinitions>  
  18.                     <Border x:Name="ContentPanel" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local">  
  19.                         <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>  
  20.                     </Border>  
  21.                     <Canvas x:Name="HeaderPanel" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="Auto" IsItemsHost="True"/>  
  22.                 </Grid>  
  23.             </ControlTemplate>  
  24.         </Setter.Value>  
  25.     </Setter>  
  26. </Style>  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要配置PyCharm码农操作界面,您可以按照以下步骤进行操作: 1. 打开PyCharm并创建一个新项目,或者打开现有项目。 2. 在顶部菜单栏中选择 "File"(文件)-> "Settings"(设置)或者使用快捷键 Ctrl + Alt + S (Windows)/ Command + ,(Mac)来打开设置。 3. 在设置窗口的左侧面板中,选择 "Appearance & Behavior"(外观和行为)-> "Appearance"(外观)。 4. 在右侧面板中,您可以自定义编辑器的外观,包括主题、字体大小等。您可以选择一个预设的主题,或者在 "Theme"(主题)下拉菜单中选择 "Customize"(自定义)来进行进一步调整。 5. 接下来,您可以在左侧面板中选择 "Editor"(编辑器),然后在右侧面板中进行更多的编辑器配置。您可以自定义代码提示、缩进、代码折叠等选项。 6. 在左侧面板中选择 "Keymap"(键盘映射),可以根据自己的喜好设置快捷键。 7. 在左侧面板中选择 "Plugins"(插件),您可以安装和管理不同的插件来增强您的开发环境。 8. 最后,在左侧面板中选择 "Appearance & Behavior"(外观和行为)-> "Editor Tabs"(编辑器选项卡)来设置编辑器选项卡的行为,例如是否显示关闭按钮、选项卡位置等。 完成以上步骤后,您可以根据自己的需求进行PyCharm码农操作界面的配置。请注意,具体的选项可能会根据您使用的PyCharm版本而有所不同。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值