WdMeasure.xaml 2.93 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1
<flyctrllib:WindowBigClose x:Class="FLY.Winder.UI.Client.UiModule.WdMeasure"
潘栩锋's avatar
潘栩锋 committed
2 3 4 5 6 7 8
        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:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:FLY.Winder.UI.Client"
        mc:Ignorable="d"
9
        Title="Window_Frequency" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight" >
潘栩锋's avatar
潘栩锋 committed
10 11 12 13
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
14
                <ResourceDictionary Source="pack://application:,,,/FLY.Winder.UI.Client;component/Themes/Dictionary_MyStyle.xaml"/>
潘栩锋's avatar
潘栩锋 committed
15 16 17
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
18
    <StackPanel Margin="5,20">
潘栩锋's avatar
潘栩锋 committed
19

20 21
        <StackPanel Margin="{StaticResource ControlMargin}">
            <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="计量设置" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="44" />
潘栩锋's avatar
潘栩锋 committed
22 23 24 25 26 27 28 29
        </StackPanel>
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal" Grid.Column="1">

30 31
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="设定" />
潘栩锋's avatar
潘栩锋 committed
32
                    <StackPanel Orientation="Horizontal">
33 34
                        <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding MeasureLenSet,StringFormat={}{0:F0}}" Foreground="#FF005083"/>
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="mm" />
潘栩锋's avatar
潘栩锋 committed
35 36
                    </StackPanel>
                </StackPanel>
37 38
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="预警" Foreground="Red" />
潘栩锋's avatar
潘栩锋 committed
39
                    <StackPanel Orientation="Horizontal">
40 41
                        <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding MeasurePreWarning,StringFormat={}{0:F0}}" Foreground="DarkRed"/>
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="mm" />
潘栩锋's avatar
潘栩锋 committed
42 43 44 45 46 47
                    </StackPanel>
                </StackPanel>

            </StackPanel>
        </Grid>

48
        <Button Style="{StaticResource ButtonStyle_apply}" Click="button_ok_Click" VerticalAlignment="Bottom"/>
潘栩锋's avatar
潘栩锋 committed
49 50 51

    </StackPanel>
</flyctrllib:WindowBigClose>