PgScanWarning.xaml 4.13 KB
<Page x:Class="FLY.Thick.Blowing.UI.PgScanWarning"
      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" 
      mc:Ignorable="d" 
      d:DesignHeight="768" d:DesignWidth="1024"
      Background="WhiteSmoke"
	Title="Page_WarningSystem">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Converter/Dictionary_MyConv.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Background="{StaticResource Brushes.TitleBar.Background}">
            <Button Style="{StaticResource Styles.TitleBar.BackButton2}" Command="BrowseBack"/>
            <TextBlock Style="{StaticResource Styles.TitleBar.Text}"  Text="扫描报警"/>
        </StackPanel>
        <ScrollViewer PanningMode="Both" Grid.Row="1" >
            <StackPanel Margin="{StaticResource ControlMargin}">
                <Border Style="{StaticResource Styles.Card.Border}">
                    <StackPanel>
                        <TextBlock Style="{StaticResource Styles.Card.Title}"
                                   Text="参数"/>
                        <StackPanel >
                            <StackPanel >
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel  Margin="{StaticResource ControlMargin}" >
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="使能" />
                                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding Enable}" />
                                    </StackPanel>
                                    <StackPanel  Margin="{StaticResource ControlMargin}" >
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="自动目标值" />
                                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsAutoTarget}" />
                                    </StackPanel>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}">
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="连续" />
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding AlarmCnt_Tolerance}" />
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="个分区"/>
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="超出" />
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="公差" Foreground="DarkRed" FontSize="{StaticResource FontSize.FieldContent}"/>
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="报警" />
                                </StackPanel>


                            </StackPanel>
                            <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft">
                                <Button Style="{StaticResource Styles.Button.Square.Accent2}" Content="应用" Command="{Binding ApplyCmd}"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </Border>

            </StackPanel>
        </ScrollViewer>
    </Grid>
</Page>