PgMainEdit.xaml 9.11 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 24
<Page x:Class="MultiLayout.MainEdit.PgMainEdit"
      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="768" d:DesignWidth="1024"
      Background="White"
      Title="Page_MainEdit" >
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="PgMainEditStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>


        </ResourceDictionary>
    </Page.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal">
                <Button Style="{StaticResource ButtonStyle_back}" Click="btnBackClick"  />
                <StackPanel Style="{StaticResource SpStyle_Header}">
                    <TextBlock Text="主界面布局管理" />
                </StackPanel>
                <Button Style="{StaticResource ButtonStyle_icon}" Click="btnSettingClick" Margin="20,0" >
                    <StackPanel>
                        <iconPacks:PackIconMaterial Kind="Settings" />
                        <TextBlock Text="设置"/>
                    </StackPanel>
                </Button>

潘栩锋's avatar
潘栩锋 committed
42
            </StackPanel>
43
            <Button Grid.Column="1" Style="{StaticResource ButtonStyle_icon}" Click="btnFileClick" Margin="20,0" >
潘栩锋's avatar
潘栩锋 committed
44
                <StackPanel>
45 46
                    <iconPacks:PackIconMaterial Kind="FileAccountOutline" />
                    <TextBlock Text="布局文件"/>
潘栩锋's avatar
潘栩锋 committed
47 48
                </StackPanel>
            </Button>
49 50
        </Grid>

潘栩锋's avatar
潘栩锋 committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
        <TabControl Grid.Row="1" Margin="{StaticResource ControlMargin}" TabStripPlacement="Left" Template="{StaticResource GageTab}">
            <TabItem Header="△△">
                <Grid Background="#bcbcbc" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Width="73" Background="#FF363636" Opacity="0.5" >
                        <StackPanel.Resources>
                            <ResourceDictionary>
                                <Style TargetType="{x:Type StackPanel}" x:Key="StackPanelStyle_button">
                                    <Setter Property="Margin" Value="5"/>
                                </Style>
                                <Style TargetType="{x:Type Ellipse}">
                                    <Setter Property="Height" Value="36"/>
                                    <Setter Property="Width" Value="36"/>
                                    <Setter Property="Stroke" Value="White"/>
                                    <Setter Property="StrokeThickness" Value="4"/>
                                </Style>
                                <Style TargetType="{x:Type Rectangle}">
                                    <Setter Property="Height" Value="36"/>
                                    <Setter Property="Width" Value="36"/>
                                    <Setter Property="Stroke" Value="White"/>
                                    <Setter Property="StrokeThickness" Value="4"/>
                                </Style>
                                <Style TargetType="{x:Type TextBlock}">
                                    <Setter Property="Foreground" Value="White"/>
                                    <Setter Property="TextAlignment" Value="Center"/>
                                    <Setter Property="FontSize" Value="12"/>
                                    <Setter Property="FontFamily" Value="YouYuan"/>
                                    <Setter Property="Margin" Value="3"/>
                                    <Setter Property="FontWeight" Value="Bold"/>
                                </Style>
                            </ResourceDictionary>
                        </StackPanel.Resources>
                        <StackPanel Style="{StaticResource StackPanelStyle_button}">
                            <Ellipse />
                            <TextBlock Text="□□"/>
                        </StackPanel>
                        <StackPanel Style="{StaticResource StackPanelStyle_button}">
                            <Ellipse />
                            <TextBlock Text="□□"/>
                        </StackPanel>
                        <StackPanel Style="{StaticResource StackPanelStyle_button}">
                            <Ellipse Stroke="Red"/>
                            <TextBlock Text="□□" Foreground="Red"/>
                        </StackPanel>
                        <StackPanel Style="{StaticResource StackPanelStyle_button}">
                            <Rectangle />
                            <TextBlock Text="□□"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Grid.Column="1" Margin="5" Width="250" Opacity="0.5" >
                        <StackPanel.Resources>
                            <Style TargetType="Border" x:Key="BorderStyle_background">
                                <Setter Property="Background" Value="White"/>
                                <Setter Property="Margin" Value="3"/>
                                <Setter Property="CornerRadius" Value="3"/>
                                <Setter Property="Effect">
                                    <Setter.Value>
                                        <DropShadowEffect Color="Black" Direction="270" ShadowDepth="1" Opacity="0.23" />
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </StackPanel.Resources>
                        <Border Style="{StaticResource BorderStyle_background}" >
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition  />
                                    <RowDefinition Height="auto" />
                                </Grid.RowDefinitions>
                                <Border Background="#FF45A6EA" CornerRadius="3" Height="100" />
                                <StackPanel Grid.Row="1" Margin="2" Height="35"/>
                            </Grid>
                        </Border>
                        <Border Style="{StaticResource BorderStyle_background}" Height="80"/>
                        <Border Style="{StaticResource BorderStyle_background}" Height="100"/>
                        <Border Style="{StaticResource BorderStyle_background}" Height="50"/>
                    </StackPanel>
                    <TabControl Grid.Column="2" FontSize="40" Margin="10" Style="{StaticResource GraphTabStyle}" Opacity="0.5" >
                        <TabControl.Resources>
                            <Style TargetType="Border" x:Key="BorderStyle_background">
                                <Setter Property="Background" Value="#FF7C7C7C"/>
                                <Setter Property="Margin" Value="10"/>
                                <Setter Property="CornerRadius" Value="3"/>
                                <Setter Property="Effect">
                                    <Setter.Value>
                                        <DropShadowEffect Color="Black" Direction="270" ShadowDepth="1" Opacity="0.23" />
                                    </Setter.Value>
                                </Setter>
                            </Style>

                        </TabControl.Resources>
                        <TabItem Header="□□□" >
                            <Grid >
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <Border Style="{StaticResource BorderStyle_background}"/>
                                <Border Grid.Row="1" Style="{StaticResource BorderStyle_background}"/>
                                <Border Grid.Row="2" Style="{StaticResource BorderStyle_background}"/>
                            </Grid>

                        </TabItem>
                        <TabItem Header="□□□" />
                        <TabItem Header="□□□" />
                    </TabControl>


                </Grid>
            </TabItem>
            <TabItem Header="△△"/>
            <TabItem Header="△△"/>
        </TabControl>
        <Button Grid.Row="1" Style="{DynamicResource ButtonStyle_clickMe}" Click="btnGageClick" >
            <TextBlock Text="点击我" />
        </Button>

    </Grid>
</Page>