<UserControl x:Class="Artemis.UI.Screens.Plugins.PluginPrerequisiteActionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Artemis.UI.Screens.Plugins"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:s="https://github.com/canton7/Stylet"
             mc:Ignorable="d"
             d:DesignHeight="450" d:DesignWidth="800"
             d:DataContext="{d:DesignInstance local:PluginPrerequisiteActionViewModel}">
    <StackPanel>
        <ProgressBar Value="{Binding Action.Progress.Percentage, Mode=OneWay}"
                     IsIndeterminate="{Binding Action.ProgressIndeterminate, Mode=OneWay}"
                     Visibility="{Binding Action.ShowProgressBar, Converter={x:Static s:BoolToVisibilityConverter.Instance}, Mode=OneWay}"
                     materialDesign:TransitionAssist.DisableTransitions="True"
                     Margin="0 10"/>
        <ProgressBar Value="{Binding Action.SubProgress.Percentage, Mode=OneWay}"
                     IsIndeterminate="{Binding Action.SubProgressIndeterminate, Mode=OneWay}"
                     Visibility="{Binding Action.ShowSubProgressBar, Converter={x:Static s:BoolToVisibilityConverter.Instance}, Mode=OneWay}"
                     materialDesign:TransitionAssist.DisableTransitions="True" 
                     Margin="0 10"/>

        <TextBlock TextWrapping="Wrap" Text="{Binding Action.Status, Mode=OneWay}" />
    </StackPanel>
</UserControl>