<UserControl x:Class="NexusShell.Controls.NexusProgress"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Name="Root">
    <StackPanel>
        <Grid Margin="0,0,0,6">
            <TextBlock Text="{Binding Label, ElementName=Root}"
                       Foreground="{StaticResource Nexus.Text.SecondaryBrush}"
                       FontSize="12"/>
            <TextBlock Text="{Binding Value, ElementName=Root, StringFormat={}{0:0}%}"
                       Foreground="{StaticResource Nexus.Accent.CyanBrush}"
                       FontSize="12" HorizontalAlignment="Right"
                       Visibility="{Binding ShowValue, ElementName=Root, Converter={StaticResource BoolToVisibility}}"/>
        </Grid>
        <ProgressBar Value="{Binding Value, ElementName=Root}"
                     Minimum="{Binding Minimum, ElementName=Root}"
                     Maximum="{Binding Maximum, ElementName=Root}"
                     IsIndeterminate="{Binding IsIndeterminate, ElementName=Root}"
                     Style="{StaticResource NexusProgressBarStyle}"/>
    </StackPanel>
</UserControl>
