C#WPF ProgressBar"默认"高度

Suz*_*ron 5 c# wpf progress-bar

在WPF中,当我ProgressBarXAML文件中放入时,默认情况下其高度约为2或3个像素.

微小的进度条.

我应该与其他Windows应用程序保持一致的高度(并根据dpi分辨率调整高度等)?我尝试过设置,Height="auto"但结果是一样的.

<Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel Name="dockPanel1">
        <ProgressBar Name="progressBar1" Value="33" DockPanel.Dock="Top"/>
        <TreeView Name="treeView1" />
    </DockPanel>
</Window>
Run Code Online (Sandbox Code Playgroud)

Viv*_*Viv 8

Windows Progressbar Guideline有一个非常好的开始提示,

推荐的尺寸和间距

只是因为链接消失了:

在此输入图像描述