简体   繁体   English

使用XAML在WPF中样式化进度栏

[英]Styling Progress Bar in WPF with XAML

Hello I want to change Heigth of my progress bar but I can't, property "height" doesn't work. 您好,我想更改进度栏的Heigth,但是我不能,属性“ height”不起作用。

I have this: 我有这个:

在此处输入图片说明

And I need like this: 我需要这样:

在此处输入图片说明

My XAML code is: 我的XAML代码是:

<ProgressBar x:Name="pgsConnectionQuality" HorizontalAlignment="Center"  
             VerticalAlignment="Center" Height="100" Margin="276,0,198,0"  Width="150" 
             Value="{Binding ConnectionQuality}"/>

How can I do? 我能怎么做? Thanks! 谢谢!

Height property works fine for me. 高度属性对我来说很好。 Your first pic doesn't look like a standard progress bar. 您的第一张图片看起来不像是标准进度条。 Are you sure you don't have a style setting it somewhere? 您确定您没有在某处设置样式的样式吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM