-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
134 lines (124 loc) · 7.95 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
<Window x:Class="WPFteste.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WPFteste"
mc:Ignorable="d"
Title="Login" Height="769" Width="1366" Opacity="0.8"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize">
<Grid>
<Image Margin="-695,-447,-695,-575" Source="/blackbackground.jpg" Stretch="Fill" Grid.RowSpan="2" Grid.ColumnSpan="3"/>
<Border Margin="0,10,0,-16" Grid.RowSpan="2" Grid.ColumnSpan="2">
<Border.Background>
<ImageBrush ImageSource="/background.jpg" Stretch="UniformToFill"/>
</Border.Background>
</Border>
<Canvas Margin="0,0,1404,10" Grid.ColumnSpan="2" >
<Rectangle
Width="282"
Height="426"
Fill="White"
Canvas.Left="548"
Stroke="Black" StrokeThickness="4"
RadiusX="30" RadiusY="30"
Canvas.Top="212" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="0.7" />
<Rectangle
Width="2362"
Height="128"
Fill="#000000" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.8" Canvas.Left="-461" />
<Image Source="/logo.png" Stretch="Fill" Canvas.Left="627" HorizontalAlignment="Center" VerticalAlignment="Center" Height="102" Width="124" Canvas.Top="13"/>
</Canvas>
<TextBox x:Name="TextBox_Usuario" HorizontalAlignment="Left" Margin="569,343,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="244" Height="41" FontFamily="Adobe Hebrew" Background="#FF201E1E" Foreground="#FFDCDBD9" FontSize="32" RenderTransformOrigin="0.498,0.528" >
<TextBox.Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
<ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Opacity" TargetName="border" Value="0.56"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="BorderBrush" TargetName="border" Value="#FF7EB4EA"/>
</Trigger>
<Trigger Property="IsFocused" Value="true">
<Setter Property="BorderBrush" TargetName="border" Value="Red "/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TextBox.Style>
</TextBox>
<Label x:Name="TextoUsuario" Style="{StaticResource AdobeHebrew}" Content="USUÁRIO" HorizontalAlignment="Left" Margin="569,315,0,0" VerticalAlignment="Top" FontSize="16" FontFamily="Adobe Hebrew" Foreground="#FF443737" Height="28" Width="81"/>
<Label x:Name="TextoSenha" Style="{StaticResource AdobeHebrew}" Content="SENHA" HorizontalAlignment="Left" Margin="569,413,0,0" VerticalAlignment="Top" FontSize="16" FontFamily="Adobe Hebrew" Foreground="#FF443737" Height="28" Width="63"/>
<Button Content="Login" Click="Button_Click_1" HorizontalAlignment="Left" VerticalAlignment="Top" Height="68" Width="242" Background="#FFE8E5E5" FontFamily="Adobe Hebrew" FontSize="32" BorderBrush="Black" BorderThickness="5,5,5,5" Margin="569,516,0,0">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="30"/>
</Style>
</Button.Resources>
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="LightBlue" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Border" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Red" TargetName="Border" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Style>
</Button>
<Label x:Name="TextoLogin" Style="{StaticResource AdobeHebrew}" Content="Faça Login" HorizontalAlignment="Left" Margin="569,234,0,0" VerticalAlignment="Top" FontSize="52" FontFamily="Adobe Hebrew" Foreground="#FF443737" Height="76" Width="264" IsEnabled="False">
<Label.Effect>
<DropShadowEffect
ShadowDepth="1"
Direction="200"
Color="Black"
Opacity="1"
BlurRadius="1"
/>
</Label.Effect>
</Label>
<Button x:Name="Botao_CriaConta" Grid.Row="0" Content="Não tenho conta" Margin="596,589,571,119" Background="{x:Null}" Foreground="#FF020202" BorderBrush="{x:Null}" FontFamily="Adobe Hebrew" FontSize="24" Click="Button_Click_2">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Border" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect ShadowDepth="1" Color="Red" Opacity="1" BlurRadius="15" RenderingBias="Quality" />
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Style>
</Button>
<PasswordBox VerticalAlignment="Top" HorizontalAlignment="Left" Name="PasswordboxSenha" Width="244" Margin="569,448,0,0" Background="#FF201E1E" Foreground="White" SelectionBrush="{x:Null}" FontFamily="Adobe Hebrew" FontSize="32" Height="41"/>
</Grid>
</Window>