關于C#在WPF中如何使用“抽屜”控件
- 1.前提準備
- 2.XAML代碼
- 3.對應的C#代碼
- 4.顯示效果
1.前提準備
需要引用MaterialDesign控件庫,關于如何引用,請參照文章——關于C#如何引用MaterialDesign控件庫
2.XAML代碼
<Window x:Class="MaterialDesign_Test.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:MaterialDesign_Test"xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"xmlns: