<UserControl x:Class="FLY.Thick.Base.UI.UiModule.DynAreaFilmWidth"
             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" 

             d:DesignWidth="250"
             mc:Ignorable="d" >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Converters.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Button Click="Border_Width_Click" Width="250" Style="{StaticResource Styles.Button.Empty}" Visibility="{Binding Enable,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
            <Border Style="{StaticResource Styles.Module.Border}"  >
                <StackPanel Margin="2">
                    <Grid Margin="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Style="{StaticResource Styles.Module.Text.ItemHeader}" Text="{StaticResource str.DynArea.Width}" />
                            <Viewbox Grid.Column="1" MaxHeight="24" HorizontalAlignment="Left" Margin="2,0">
                                <StackPanel Orientation="Horizontal" >
                                    <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue}" Text="{Binding Width, StringFormat={}{0:F0}}" />
                                    <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue.Unit}" Text="mm" />
                                </StackPanel>
                            </Viewbox>
                        </Grid>
                        <Grid Grid.Column="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Style="{StaticResource Styles.Module.Text.ItemHeader}" Text="{StaticResource str.DynArea.FilmVelocity}" />
                            <Viewbox Grid.Column="1" MaxHeight="24" HorizontalAlignment="Left" Margin="2,0">
                                <StackPanel Orientation="Horizontal" >
                                    <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue}" Text="{Binding FilmVelocity, StringFormat={}{0:F1}}" />
                                    <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue.Unit}" Text="m/min" />
                                </StackPanel>
                            </Viewbox>
                        </Grid>
                    </Grid>
                    <StackPanel Orientation="Horizontal" Margin="2">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Style="{StaticResource Styles.Module.Text.ItemHeader}" Text="{StaticResource str.DynArea.FilmPosition}" />
                            <StackPanel Orientation="Horizontal" Margin="2,0">
                                <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue}" Text="{Binding FilmPosition, StringFormat={}{0:F2}}" />
                                <TextBlock Style="{StaticResource Styles.Module.Text.ItemValue.Unit}" Text="m"  />
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>
            </Border>
        </Button>
    </Grid>
</UserControl>