UcThicknessV4.xaml 4.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<UserControl x:Class="FLY.Weight.UI.Client.UiModule.UcThicknessV4"
             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:sys="clr-namespace:System;assembly=mscorlib" xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
             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>
16
    <Border Style="{StaticResource BorderStyle_block}" d:DataContext="{StaticResource weightSystemUt}">
潘栩锋's avatar
潘栩锋 committed
17
        <Button Style="{StaticResource Styles.Button.Empty}" Background="Transparent" Click="btnThicknessClick" >
18 19
            <Viewbox Margin="{StaticResource ControlMargin}" Stretch="Uniform" StretchDirection="DownOnly" HorizontalAlignment="Left" VerticalAlignment="Top">
                <StackPanel Width="120">
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
                    <StackPanel Margin="3" >
                        <TextBlock Text="当前厚度" Style="{StaticResource TextBlockStyle_title}" />
                        <TextBlock >
                                    <Run Text="{Binding Accessory.Thickness4,Converter={StaticResource floorConv}, ConverterParameter=1}" Style="{StaticResource RunStyle_text}" />
                                    <Run Text="um" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>
                    <StackPanel Margin="3" Background="{StaticResource Color_background2}">
                        <TextBlock Text="当前速度" Style="{StaticResource TextBlockStyle_title}" />
                        <TextBlock >
                                    <Run Text="{Binding Accessory.CurrentVelocity4,Converter={StaticResource floorConv}, ConverterParameter=1}" Style="{StaticResource RunStyle_text}" />
                                    <Run Text="m/min" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>
                    <StackPanel Margin="3" >
                        <TextBlock Text="理论速度" Style="{StaticResource TextBlockStyle_title}" />
                        <TextBlock >
                                    <Run Text="{Binding Accessory.TargetVelocity4,Converter={StaticResource floorConv}, ConverterParameter=1}" Style="{StaticResource RunStyle_text}" />
                                    <Run Text="m/min" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>
                    <StackPanel Margin="3" Background="{StaticResource Color_background2}">
                        <TextBlock Text="设置厚度" Style="{StaticResource TextBlockStyle_title_activity}"/>
                        <TextBlock >
                            <Run Text="{Binding Accessory.SetThickness,Converter={StaticResource floorConv}, ConverterParameter=0}" Style="{StaticResource RunStyle_text_activity}" />
                            <Run Text="um" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>


                    <StackPanel Margin="3" >
                        <TextBlock Text="吹膜宽度" Style="{StaticResource TextBlockStyle_title_activity}"/>
                        <TextBlock >
                                    <Run Text="{Binding Accessory.TotalFilmWidth,Converter={StaticResource floorConv}, ConverterParameter=0}" Style="{StaticResource RunStyle_text_activity}" />
                                    <Run Text="mm" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>
                    <StackPanel Margin="3" >
                        <TextBlock Text="总流量设定" Style="{StaticResource TextBlockStyle_title_activity}"/>
                        <TextBlock >
                                <Run Text="{Binding Accessory.TotalFlowSetting4,Converter={StaticResource floorConv}, ConverterParameter=1}" Style="{StaticResource RunStyle_text_activity}" />
                                <Run Text="kg/h" Style="{StaticResource RunStyle_unit}" />
                        </TextBlock>
                    </StackPanel>
                </StackPanel>
            </Viewbox>

        </Button>
    </Border>
</UserControl>