官方UWP ProgressBar控件:https://learn.microsoft.com/zh-cn/windows/apps/design/controls/progress-controls
我怎样才能改变它?
我可以重现你的问题。所以有两个进度条:默认一个(虚线)是原生uwp,另一个(你想得到的)是Winui2 nuget包自带的。
如何安装和添加nuget:
<Application.Resources>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</Application.Resources>
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
<muxc:ProgressBar Width="150" IsIndeterminate="True"/>