<UserControl x:Class="FasdDesktopUi.Basics.UserControls.AdjustableParameterSection"
             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:FasdDesktopUi.Basics.UserControls"
             xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
             xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
             mc:Ignorable="d"
             d:DesignHeight="450"
             d:DesignWidth="800">

    <UserControl.Resources>
        <vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
    </UserControl.Resources>

    <Border Background="{DynamicResource BackgroundColor.Menu.MainCategory}"
            CornerRadius="10"
            Padding="7.5">

        <StackPanel>

            <StackPanel Orientation="Horizontal">

                <ico:AdaptableIcon x:Name="CollapseButton"
                                   Style="{DynamicResource SettingsPage.Close.Icon}"
                                   BorderPadding="5"
                                   SelectedMaterialIcon="ic_remove"
                                   MouseLeftButtonUp="CollapseButton_MouseLeftButtonUp"
                                   TouchDown="CollapseButton_TouchDown" />

                <TextBlock Style="{DynamicResource DetailsPage.DataHistory.TitleColumn.OverviewTitle}"
                           Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=QuickAction.Parameter}" />

            </StackPanel>

            <Border x:Name="ParameterBorder"
                    Padding="10 7.5">
                <StackPanel x:Name="ParameterStack" />
            </Border>

        </StackPanel>

    </Border>
</UserControl>
