基于ListBox制作一个好看的侧边菜单导航栏

1.代码实现

MainWindow.xaml 代码如下:

<Window x:Class="UIDamo_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:UIDamo_WPF"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800" Background="#2b2b2b">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="130"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Fill=

最近更新

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

    2024-07-21 18:54:02       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-21 18:54:02       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-21 18:54:02       45 阅读
  4. Python语言-面向对象

    2024-07-21 18:54:02       55 阅读

热门阅读

  1. org.mybatis和JDBC有什么关系?

    2024-07-21 18:54:02       17 阅读
  2. JVM调优 jstat 与 jstack

    2024-07-21 18:54:02       15 阅读
  3. 前端入门(五)之练习表格的增删改查

    2024-07-21 18:54:02       18 阅读
  4. MySQL分库分表实现

    2024-07-21 18:54:02       21 阅读
  5. python解析pdf文件

    2024-07-21 18:54:02       17 阅读
  6. NOI2024 - 最终的答案

    2024-07-21 18:54:02       13 阅读