• 潘栩锋's avatar
    1.添加 称重添加 1111111_v5 · 7e8de107
    潘栩锋 authored
    2.添加 称重服务器可以在修复每层名称,测厚仪客户端显示称重的版本,(不需要修改布局)
    7e8de107
MainGraphV5_2.xaml 2.72 KB
<UserControl x:Class="FLY.Weight.UI.Client.UiModule.MainGraphV5_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"  >

    <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"/>
        <Viewbox Stretch="Uniform" VerticalAlignment="Top" HorizontalAlignment="Left">
            <Grid Name="root_grid" d:DataContext="{StaticResource unittests_weighters}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <local:UcTotalFlowV4 x:Name="ucTotalFlow" Margin="{StaticResource ControlMargin}" />

                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <local:UcThicknessV5 x:Name="ucThickness" Margin="{StaticResource ControlMargin}"/>
                    <ItemsControl x:Name="itemsControl" Grid.Column="1" ItemsSource="{Binding Items}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <local:UcWeighterItemV5_2 Margin="{StaticResource ControlMargin}" 
                                                      WeightSystemService="{Binding DataContext,ElementName=root_grid}"
                                                      Container="{Binding DataContext,ElementName=container_grid}"/>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>

                    </ItemsControl>
                </Grid>

            </Grid>
        </Viewbox>
    </Grid>

</UserControl>