C#WPF仿苹果的漂亮的工具栏

本文讲解C#WPF构建仿苹果的漂亮的工具栏。

自定义工具栏样式代码如下

<Window.Resources>
    <Style x:Key="ToolBarStyle" TargetType="ToolBar">
        <Setter Property="Background" Value="LightBlue"/>
        <Setter Property="Height" Value="50"/>
        <Setter Property="Margin" Value="5"/>
    </Style>

    <Style x:Key="ToolBarButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="50"/>
        <Setter Property="Height" Value="50"/>
        <Setter Property="Background" Value="LightGray"/>
        <Setter Property="BorderBrush" Value="Gray"/>
        <Setter Property="

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-10 10:20:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-10 10:20:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-10 10:20:04       82 阅读
  4. Python语言-面向对象

    2024-04-10 10:20:04       91 阅读

热门阅读

  1. python-pytorch NLP中处理中文的步骤0.5.002

    2024-04-10 10:20:04       28 阅读
  2. 模板的全特化和局部特化

    2024-04-10 10:20:04       43 阅读
  3. 【python】 Django Web框架

    2024-04-10 10:20:04       39 阅读
  4. 客户端(client)fork 一个服务器(server)进程

    2024-04-10 10:20:04       33 阅读
  5. pandas习题 021:根据字符串包含情况查询 Series

    2024-04-10 10:20:04       36 阅读
  6. git reset 的三种模式

    2024-04-10 10:20:04       34 阅读
  7. arcgis10.x创建镶嵌数据集

    2024-04-10 10:20:04       39 阅读
  8. Pycharm中如何成功import cv2?

    2024-04-10 10:20:04       35 阅读
  9. 通过 Spark SQL 和 DataFrames 与外部数据源交互

    2024-04-10 10:20:04       31 阅读
  10. kafka客户端常用命令

    2024-04-10 10:20:04       34 阅读
  11. C#WPF给控件增加滚动条

    2024-04-10 10:20:04       39 阅读
  12. PDF Guru 通用型PDF文件处理工具

    2024-04-10 10:20:04       32 阅读
  13. OpenDevin介绍

    2024-04-10 10:20:04       31 阅读
  14. QT day2

    2024-04-10 10:20:04       36 阅读
  15. Acwing2024蓝桥杯DFS

    2024-04-10 10:20:04       29 阅读
  16. C语言每日一题(66)三数之和

    2024-04-10 10:20:04       33 阅读