In WPF, when I put a ProgressBar
in the XAML
file, its height is about 2 or 3 pixels by default.
What height should I put for consistency with other Windows applications (and adjust height depending on dpi resolution, etc.) ? I tried setting Height="auto"
but the result is the same.
<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>
Windows Progressbar Guideline has a pretty good starting hint,
Recommended sizing and spacing
Just incase the link goes away:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With