Reputation: 486
I have an application which takes time to load so i would like to display a progress bar in a small window such that it should not have any buttons like minimize,maximize and close button the progress bar should be standalone. Is there any way to display progress bar without any buttons.
Upvotes: 0
Views: 610
Reputation: 223277
place the progress bar control in the window control and in xaml set these properties with your window tag
<Window x:Class="XXX"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="20" Width="50" WindowStartupLocation="CenterScreen"
WindowStyle="None"
ResizeMode="NoResize"
ShowInTaskbar="False" >
Upvotes: 1
Reputation: 184622
Yes, just set the WindowStyle
to None
, and possibly ResizeMode
to NoResize
.
Upvotes: 1