<?xml version="1.0" encoding="UTF-8" ?>
<StackLayout
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:controls="clr-namespace:Bit.App.Controls"
    xmlns:u="clr-namespace:Bit.App.Utilities"
    x:DataType="controls:PasswordStrengthViewModel"
    x:Class="Bit.App.Controls.PasswordStrengthProgressBar"
    StyleClass="box">
    
    <StackLayout.Resources>
        <ResourceDictionary>
            <u:LocalizableEnumConverter x:Key="localizableEnum" />
        </ResourceDictionary>
    </StackLayout.Resources>

    <ProgressBar
        x:Name="_progressBar"
        u:ProgressBarExtensions.AnimatedProgress="{Binding PasswordStrength}"
        ScaleY="2" />

    <Label
        x:Name="_progressLabel"
        Text="{Binding PasswordStrengthLevel, Converter={StaticResource localizableEnum}, TargetNullValue=' ' }"
        StyleClass="box-footer-label" />

</StackLayout>

