PgGageInfo.xaml 3.73 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1
<Page x:Class="FLY.Thick.Base.UI.PgGageInfo"
潘栩锋's avatar
潘栩锋 committed
2 3 4 5 6 7
      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" 
      xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
8
      xmlns:local ="clr-namespace:FLY.Thick.Base.UI" xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
潘栩锋's avatar
潘栩锋 committed
9 10 11 12 13 14 15
      d:DesignHeight="768" d:DesignWidth="1024"
      Loaded="Page_Loaded" Unloaded="Page_Unloaded"
	Title="Page_GageInfo">
    <Page.Resources>
        <ResourceDictionary>
        </ResourceDictionary>
    </Page.Resources>
16
    <Grid Background="{StaticResource Brushes.ThemeBackground}">
潘栩锋's avatar
潘栩锋 committed
17 18 19 20
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
潘栩锋's avatar
潘栩锋 committed
21
        <Grid Background="{StaticResource Brushes.TitleBar.Background}" >
潘栩锋's avatar
潘栩锋 committed
22 23 24 25 26
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal" >
27 28 29
                <Button Style="{StaticResource Styles.TitleBar.BackButton2}" Command="BrowseBack"   >
                    <iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
                </Button>
30
                <TextBlock Style="{StaticResource Styles.TitleBar.Text}"  Text="{StaticResource str.PgGageInfo.Title}"/>
潘栩锋's avatar
潘栩锋 committed
31 32 33
            </StackPanel>
            <local:CtMicroGage Grid.Column="1" x:Name="mircoGage" Background="Transparent" VerticalAlignment="Bottom"/>
        </Grid>
潘栩锋's avatar
潘栩锋 committed
34 35 36 37 38
        <Grid Grid.Row="1" Margin="0,5,0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
39
            <Button Click="button_start_Click" >
潘栩锋's avatar
潘栩锋 committed
40
                <TextBlock >
41
                    <TextBlock.Style>
42 43
                        <Style TargetType="TextBlock" BasedOn="{StaticResource Styles.ParamSection.Text}" >
                            <Setter Property="Text" Value="{StaticResource str.PgGageInfo.Record}"/>
44 45 46 47 48 49 50 51
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding IsRunning}" Value="True">
                                    <Setter Property="Text" Value="停止"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </TextBlock.Style>
                </TextBlock>
潘栩锋's avatar
潘栩锋 committed
52
                <Button.Style>
53
                    <Style TargetType="Button" BasedOn="{StaticResource Styles.ParamSection.Button}" >
潘栩锋's avatar
潘栩锋 committed
54 55
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsRunning}" Value="True">
56
                                <Setter Property="Background" Value="{StaticResource Brushes.Fault}"/>
潘栩锋's avatar
潘栩锋 committed
57 58 59 60
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Button.Style>
61

潘栩锋's avatar
潘栩锋 committed
62
            </Button>
63
            <Grid Grid.Column="1" Margin="{StaticResource ControlMargin}">
潘栩锋's avatar
潘栩锋 committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77
                <Grid.RowDefinitions>
                    <RowDefinition  Height="Auto"/>
                    <RowDefinition  />
                </Grid.RowDefinitions>
                <ProgressBar Name="progressBar1" VerticalAlignment="Top" Height="10" Value="{Binding Progress}"/>
                <WindowsFormsHost Grid.Row="1" >
                    <Chr:Chart x:Name="chart1"/>
                </WindowsFormsHost>
                
            </Grid>

        </Grid>
    </Grid>
</Page>