-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_menu.xaml
159 lines (154 loc) · 9.75 KB
/
main_menu.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
<Window x:Class="datos_escuela.main_menu"
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:datos_escuela"
mc:Ignorable="d"
Title="Men Principal" Height="600" Width="500" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="/Network.ico" Background="Black" BorderBrush="Black">
<Window.Resources>
<!-- Estilo para los Label --> <Style x:Key="Labelstyle" TargetType="{x:Type Label}"> <Setter Property="Foreground" Value="White"/> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="Padding" Value="5"/> <Setter Property="FontSize" Value="24"/> <Setter Property="FontFamily" Value="Cascadia Code SemiBold"/> <Setter Property="HorizontalContentAlignment" Value="Left"/> <Setter Property="VerticalAlignment" Value="Top"/> <Setter Property="Width" Value="280"/> </Style>
<!-- Estilo para botones principales --> <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Background" Value="#007FFF"/> <Setter Property="Foreground" Value="White"/> <Setter Property="FontFamily" Value="Cascadia Code SemiBold"/> <Setter Property="FontSize" Value="20"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="BorderBrush" Value="#007FFF"/> <Setter Property="Padding" Value="10,5"/> <Setter Property="Margin" Value="5"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="VerticalAlignment" Value="top"/> <Setter Property="Width" Value="290"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border x:Name="btn_entrar" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5"> <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </Border> <ControlTemplate.Triggers> <Trigger Property="IsPressed" Value="True"> <Setter Property="RenderTransform" TargetName="btn_entrar"> <Setter.Value> <TranslateTransform Y="2"/> </Setter.Value> </Setter> </Trigger> <Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#007FFF"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TranslateTransform Y="2"/>
</Setter.Value>
</Setter>
</Trigger> <Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" Value="#007FFF"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TranslateTransform Y="2"/>
</Setter.Value>
</Setter>
</Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>
<!--Estilos para botones secundarios--> <Style x:Key="secundaryButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontFamily" Value="Cascadia Code SemiBold"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Padding" Value="10,5"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="top"/>
<Setter Property="Width" Value="270"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="btn_entrar" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="5">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="BorderThickness" Value="0 0 0 2"/>
<Setter Property="BorderBrush" Value="#007FFF"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TranslateTransform Y="2"/>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderThickness" Value="0 0 0 2"/>
<Setter Property="BorderBrush" Value="#FFFF0000"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TranslateTransform Y="2"/>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderThickness" Value="0 0 0 2"/>
<Setter Property="BorderBrush" Value="#FFFF0000"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TranslateTransform Y="2"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Label x:Name="lbl_titulo_menu_princ" Content="Administracion de Alumnos y Personal:" Style="{StaticResource Labelstyle}" FontSize="22" Margin="0,50,0,0" Width="490"/>
<Button x:Name="btn_Aalumnos" Content="Alumnos" Style="{StaticResource ButtonStyle}" Margin="0,100,0,0" Click="btn_alum_Click" Width="350"/>
<Button x:Name="btn_alumnos_Admin" Content="Administracion de Alumnos" Style="{StaticResource ButtonStyle}" Margin="0,139,0,0" Width="350" Click="btn_alumnos_Admin_Click"/>
<Button x:Name="btn_Aprofesores" Content="Profesores" Style="{StaticResource ButtonStyle}" Margin="0,179,0,0" Click="btn_profes_Click" Width="350"/>
<Button x:Name="btn_profesores_admin" Content="Administracion de profesores" Style="{StaticResource ButtonStyle}" Margin="0,219,0,0" Width="350" Click="btn_person_adm_Click"/>
<Button x:Name="btn_cerrar_sesion" Content="Cerrar Sesion" Style="{StaticResource secundaryButtonStyle}" Margin="0,260,0,0" Click="btn_cerrar_sesion_Click"/>
<Button x:Name="btn_salir" Content="Cerrar Sesion y Salir" Style="{StaticResource secundaryButtonStyle}" Margin="0,300,0,0" Click="btn_salir_Click"/>
</Grid>
</Window>