PgPwManager.xaml 6.08 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<Page x:Class="FLY.Thick.Base.UI.PgPwManager"
      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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
      mc:Ignorable="d" 
      d:DesignHeight="800" d:DesignWidth="1024"
      Background="WhiteSmoke"
	Title="PgCustomSections">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal"  Background="{StaticResource Brush_theme_bar}" >
潘栩锋's avatar
潘栩锋 committed
24
            <Button Style="{StaticResource Styles.TitleBar.BackButton2}" Command="BrowseBack"/>
潘栩锋's avatar
潘栩锋 committed
25 26 27 28 29 30 31 32 33 34 35 36
            <TextBlock Style="{StaticResource TextBlockStyle_Title}" Text="密码管理"/>
        </StackPanel>
        <ScrollViewer  PanningMode="Both" Grid.Row="1" >
            <StackPanel>
                <DataGrid AlternationCount ="2" AlternatingRowBackground="LightGray"  AutoGenerateColumns="False" Margin="{StaticResource ControlMargin}" 
                          ItemsSource="{Binding Pws}" >
                    <DataGrid.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="FontSize" Value="20"/>
                        </Style>
                    </DataGrid.CellStyle>
                    <DataGrid.Columns>
37 38 39 40 41 42 43 44
                        <DataGridTextColumn CanUserReorder="False" Binding="{Binding Description}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
                                       Text="描述"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
潘栩锋's avatar
潘栩锋 committed
45 46 47
                        <DataGridTextColumn CanUserReorder="False" Binding="{Binding Level}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
48
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
潘栩锋's avatar
潘栩锋 committed
49
                                       Text="级别"/>
潘栩锋's avatar
潘栩锋 committed
50
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" 
潘栩锋's avatar
潘栩锋 committed
51 52 53 54 55 56 57
                                       Text="(0-10)"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
                        <DataGridTextColumn CanUserSort="False" CanUserReorder="False" Binding="{Binding Password}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
58
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
潘栩锋's avatar
潘栩锋 committed
59 60 61 62 63 64
                                       Text="密码"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
                    </DataGrid.Columns>
                </DataGrid>
65
                <DataGrid AlternationCount ="2" AlternatingRowBackground="LightGray"  AutoGenerateColumns="False" Margin="{StaticResource ControlMargin}" 
潘栩锋's avatar
潘栩锋 committed
66 67 68 69 70 71 72 73 74 75
                         ItemsSource="{Binding UiLvs}" >
                    <DataGrid.CellStyle>
                        <Style TargetType="DataGridCell">
                            <Setter Property="FontSize" Value="20"/>
                        </Style>
                    </DataGrid.CellStyle>
                    <DataGrid.Columns>
                        <DataGridTextColumn CanUserReorder="False" Binding="{Binding UiName}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
76
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
潘栩锋's avatar
潘栩锋 committed
77 78 79 80 81 82 83
                                       Text="名称"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
                        <DataGridTextColumn CanUserReorder="False" Binding="{Binding Description}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
84
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
潘栩锋's avatar
潘栩锋 committed
85 86 87 88 89 90 91
                                       Text="描述"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
                        <DataGridTextColumn CanUserReorder="False" Binding="{Binding Level}" >
                            <DataGridTextColumn.Header>
                                <StackPanel Orientation="Horizontal">
92
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" 
潘栩锋's avatar
潘栩锋 committed
93
                                       Text="级别"/>
潘栩锋's avatar
潘栩锋 committed
94
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" 
潘栩锋's avatar
潘栩锋 committed
95 96 97 98 99 100 101 102 103 104 105 106 107
                                       Text="(0-10)"/>
                                </StackPanel>
                            </DataGridTextColumn.Header>
                        </DataGridTextColumn>
                    </DataGrid.Columns>
                </DataGrid>
            </StackPanel>
        </ScrollViewer>

        <Button Grid.Row="0" Style="{StaticResource ButtonStyle_apply}" VerticalAlignment="Bottom" Margin="0,0,20,-45" 
                Command="{Binding ApplyCmd}"/>
    </Grid>
</Page>