Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Progress bar rather than spinning icon?

$
0
0
I understand what is being requested here. Actually we had a progress bar originally, but the built-in WPF indeterminate (marquee) progress bar doesn't let you control the speed of the animation and we weren't quite happy with it - it goes at different speeds depending on the OS or .NET version (can't remember which).

Here is a mock-up so you can test it for yourself - I think you'll agree it's not quite as elegant or as smooth as the one you'd be familiar with from Windows forms - that was the reason we went with the ellipse instead. The ellipse is almost the standard for indeterminate progress indicators these days.

If you can code or source the code for a smoother animation than this (preferably in pure XAML), we can look to integrate it.
#Build the GUI
[xml]$xaml = @"
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Name="Window" Title="Initial Window" WindowStartupLocation = "CenterScreen" 
    Width = "400" Height = "200" ShowInTaskbar = "True">
    <ProgressBar x:Name="progressBar1" IsIndeterminate="True" Maximum="100" Height="20" Width="300" /> 
</Window>
"@ 

$reader=(New-Object System.Xml.XmlNodeReader $xaml)
$Window=[Windows.Markup.XamlReader]::Load( $reader )

$Window.ShowDialog()


Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>