<UserControl x:Class="FLY.Weight.UI.Client.UiModule.MainGraphV3_2"
      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:FLY.Weight.UI.Client.UiModule"
        xmlns:control="clr-namespace:FLY.Weight.UI.Client.Control"
      xmlns:sys="clr-namespace:System;assembly=mscorlib"
      mc:Ignorable="d" d:DesignWidth ="960" d:DesignHeight="890">
    <!--1920*1080 下图表区  1600 * 954
1280*1024 下图表区  960 * 890
1388*768 下图表区  1060 * 634--> 

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.Weight.UI.Client;component/Themes/UcWeighterItemStyle.xaml"/>

            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid x:Name="container_grid"/>
        
        <Grid Name="root_grid" d:DataContext="{StaticResource weightSystemUt}">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition />
            </Grid.RowDefinitions>
            <local:UcTotalFlowV3_2 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />
            <ItemsControl x:Name="itemsControl" Grid.Row="1" ItemsSource="{Binding Items}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <UniformGrid Columns="{Binding ElementName=itemsControl,Path=Items.Count}"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <local:UcWeighterItemV0_2 Margin="{StaticResource ControlMargin}" 
                                                    WeightSystemService="{Binding DataContext,ElementName=root_grid}"
                                                    Container="{Binding DataContext,ElementName=container_grid}"/>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>

            </ItemsControl>

        </Grid>
    </Grid>

</UserControl>