I am looking for a forced ProgressBar
that cannot be closed or canceled. I tried to make this window, but it can always be closed by ALT-F4.
I want to close the window when the process is finished.
<Window x:Class="BWCRenameUtility.View.BusyProgressBar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="BusyProgressBar" WindowStyle="None" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Content="Exporting..."/>
<ProgressBar Width="300" Height="20" IsIndeterminate="True" Grid.Row="1"/>
</Grid>
</Window>