<Window x:Class="StructureHelper.Windows.Forces.ForceCombinationByFactorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:StructureHelper.Windows.Forces"
        xmlns:uc="clr-namespace:StructureHelper.Windows.UserControls"
        d:DataContext="{d:DesignInstance local:ForceCombinationByFactorVM}"
        mc:Ignorable="d"
        Title="Force Combination By Factor" Height="250" Width="350" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <TabControl>
            <TabItem Header="Main">
                <StackPanel>
                    <!--ForceTemplates.xaml-->
                    <ContentControl ContentTemplate="{StaticResource ResourceKey=ForceActionNameTemplate}" Content="{Binding}"/>
                    <TextBlock Text="Load combination"/>
                    <Grid DataContext="{Binding ForceTupleVM}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25"/>
                            <RowDefinition Height="25"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock HorizontalAlignment="Center" Text="Mx" />
                        <TextBlock Grid.Column="1" HorizontalAlignment="Center" Text="My" />
                        <TextBlock Grid.Column="2" HorizontalAlignment="Center" Text="Nz" />
                        <TextBox Grid.Row="1" Text="{Binding Mx, Converter={StaticResource MomentConverter}, ValidatesOnExceptions=True}"/>
                        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding My, Converter={StaticResource MomentConverter}, ValidatesOnExceptions=True}"/>
                        <TextBox Grid.Row="1" Grid.Column="2" Text="{Binding Nz, Converter={StaticResource ForceConverter}, ValidatesOnExceptions=True}"/>
                    </Grid>
                    <Image Height="50" Width="50" Stretch="UniformToFill" Source="/Windows/Forces/Forces.jpg" HorizontalAlignment="Left">
                        <Image.ToolTip>
                            <Image Height="250" Width="250" Stretch="UniformToFill" Source="/Windows/Forces/Forces.jpg"/>
                        </Image.ToolTip>
                    </Image>
                </StackPanel>
            </TabItem>
            <TabItem Header="Force point">
                
                <!--ForceTemplates.xaml-->
                <ContentControl VerticalAlignment="Top" ContentTemplate="{StaticResource ResourceKey=ForceActionPointTemplate}" Content="{Binding}"/>
            </TabItem>
            <TabItem Header="Partial factors">
                <uc:FactoredCombination DataContext="{Binding CombinationProperty}"/>
            </TabItem>
        </TabControl>
        <ContentControl Grid.Row="2" ContentTemplate="{StaticResource OkCancelButtons}" Content="{Binding}"/>
    </Grid>
</Window>
