mr.solder5 il y a 5 ans
Parent
commit
fa7131927d

BIN
CopyCenter/1536306136_user[1].png


BIN
CopyCenter/27598932_60x60[1].png


BIN
CopyCenter/654a72aa16e5a5fcc7f2137f3a2fbea2[1].png


+ 9 - 0
CopyCenter/CopyCenter.csproj

@@ -210,6 +210,12 @@
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
   <ItemGroup>
+    <Resource Include="w256h2561384699897signup[1].png" />
+    <Resource Include="1536306136_user[1].png" />
+    <Resource Include="iEGK0L0W3.jpg" />
+    <Resource Include="i5CKOC7YB.jpg" />
+    <Resource Include="654a72aa16e5a5fcc7f2137f3a2fbea2[1].png" />
+    <Resource Include="27598932_60x60[1].png" />
     <Content Include="DataBase.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <DependentUpon>DataBase.edmx</DependentUpon>
@@ -220,6 +226,9 @@
       <DependentUpon>DataBase.edmx</DependentUpon>
       <LastGenOutput>DataBase.cs</LastGenOutput>
     </Content>
+    <Resource Include="user-logo.png" />
+    <Resource Include="key.png" />
+    <Resource Include="key[1].png" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 59 - 2
CopyCenter/Style.xaml

@@ -20,5 +20,62 @@
         <Setter Property="VerticalAlignment" Value="Center"/>
         <Setter Property="Margin" Value="5"/>
     </Style>
-    
-</ResourceDictionary>
+
+    <Style TargetType="{x:Type Button}" >
+        <Setter Property="Template">
+            <Setter.Value>
+                <ControlTemplate TargetType="{x:Type Button}">
+                    <Grid>
+                        <Rectangle x:Name="GelBackground" Opacity="1" RadiusX="9" RadiusY="9"
+                               Fill="{TemplateBinding Background}" StrokeThickness="0.35">
+                            <Rectangle.Stroke>
+                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
+                                    <GradientStop Color="#FF14A8E0" Offset="0" />
+                                    <GradientStop Color="#FF14A8E0" Offset="1" />
+                                </LinearGradientBrush>
+                            </Rectangle.Stroke>
+                        </Rectangle>
+                        <Rectangle x:Name="GelShine" Margin="2,2,2,0" VerticalAlignment="Top" RadiusX="8" RadiusY="8"
+                               Opacity="1" Stroke="Transparent" Height="5px">
+                            <Rectangle.Fill>
+                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
+                                    <GradientStop Color="#FF14A8E0" Offset="0"/>
+                                    <GradientStop Color="Transparent" Offset="1"/>
+                                </LinearGradientBrush>
+                            </Rectangle.Fill>
+                        </Rectangle>
+                        <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
+                    </Grid>
+                    <ControlTemplate.Triggers>
+                        <Trigger Property="IsMouseOver" Value="True">
+                            <Setter Property="Background" Value="DarkBlue">
+
+                            </Setter>
+                        </Trigger>
+                        <Trigger Property="IsPressed" Value="True">
+                            <Setter Property="Fill" TargetName="GelBackground">
+                                <Setter.Value>
+                                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
+                                        <GradientStop Color="Blue" Offset="0"/>
+                                        <GradientStop Color="Blue" Offset="1"/>
+                                    </LinearGradientBrush>
+                                </Setter.Value>
+                            </Setter>
+                        </Trigger>
+                        <Trigger Property="IsEnabled" Value="False">
+                            <Setter Property="Fill" TargetName="GelBackground" Value="Blue">
+
+                            </Setter>
+                        </Trigger>
+                    </ControlTemplate.Triggers>
+                </ControlTemplate>
+            </Setter.Value>
+        </Setter>
+        <Setter Property="Background" Value="#002060"/>
+        <Setter Property="Foreground" Value="White"/>
+        <Setter Property="Width" Value="55"/>
+        <Setter Property="Height" Value="30"/>
+
+    </Style>
+
+</ResourceDictionary>

+ 13 - 16
CopyCenter/Window1.xaml

@@ -5,22 +5,19 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:CopyCenter"
         mc:Ignorable="d"
-        Title="" Height="150" Width="300" WindowStartupLocation="CenterScreen" FontFamily="Century Gothic">
+        Title="" Height="300" Width="450" WindowStartupLocation="CenterScreen" FontFamily="Century Gothic">
     <Grid>
-        <Grid.RowDefinitions>
-            <RowDefinition/>
-            <RowDefinition/>
-            <RowDefinition/>
-        </Grid.RowDefinitions>
-        <Grid.ColumnDefinitions>
-            <ColumnDefinition/>
-            <ColumnDefinition/>
-        </Grid.ColumnDefinitions>
-        <TextBlock Text="Логин"/>
-        <TextBlock Text="Пароль" Grid.Row="1"/>
-        <TextBox Name="login" Grid.Column="1" Grid.Row="0"/>
-        <PasswordBox Name="password" Grid.Column="1"  Grid.Row="1"/>
-        <Button Grid.Row="2" Grid.Column="0" Content="Войти" Click="lox" FontFamily="Comic Sans MS"/>
-        <Button Grid.Row="2" Grid.Column="1" Content="Зарегистрироваться" Click="Registration_Click" FontFamily="Comic Sans MS" Margin="6,5,5,5"/>
+
+        <TextBlock Text="Логин" Margin="10,82,397,172"/>
+        <TextBlock Text="Пароль" Margin="10,130,387,124"/>
+        <TextBlock Text="АВТОРИЗАЦИЯ" Margin="179,10,175,244"/>
+        <TextBox Name="login" Grid.Row="0" Margin="109,72,39,164"/>
+        <PasswordBox Name="password" Margin="109,120,39,117"/>
+        <Button Grid.Column="0" Content="Вход" Click="AuthorizationClick" FontFamily="Century Gothic" Height="Auto" Margin="338,162,39,82" Width="Auto" Background="#FF138DE2" FontSize="14"/>
+        <Button Content="Зарегистрироваться" Click="Registration_Click" FontFamily="Century Gothic" Height="Auto" Margin="179,162,118,82" Width="Auto" Background="#FF138DE2" FontSize="14"/>
+        <Image Margin="64,120,346,117" Source="key[1].png" Stretch="Fill"/>
+        <Image Margin="64,72,346,165" Source="1536306136_user[1].png" Stretch="Fill"/>
+        <Image Margin="278,0,124,229" Source="w256h2561384699897signup[1].png" Stretch="Fill" RenderTransformOrigin="7.7,0.75"/>
+
     </Grid>
 </Window>

BIN
CopyCenter/i5CKOC7YB.jpg


BIN
CopyCenter/iEGK0L0W3.jpg


BIN
CopyCenter/key.png


BIN
CopyCenter/key[1].png


BIN
CopyCenter/user-logo.png


BIN
CopyCenter/w256h2561384699897signup[1].png