-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
173 lines (141 loc) · 9.99 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
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
<Window x:Class="Variedades.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:Variedades"
xmlns:fa5="http://schemas.fontawesome.com/icons/"
xmlns:extToolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Title="MainWindow" Height="500" Width="900">
<Grid>
<!--Main Layout-->
<Grid.ColumnDefinitions>
<ColumnDefinition Name="Sidebar" Width="*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--Sidebar-->
<Grid Grid.Column="0" Name="Menu" Background="#333238">
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="6*"/>
</Grid.RowDefinitions>
<Grid>
<Image Margin="20,20,20,20" Source="./Assets/profile-icon-png-909.png" />
</Grid>
<!--Sidebar Items-->
<ListView Name="SidebarItems" ScrollViewer.HorizontalScrollBarVisibility="Disabled" SelectionChanged="ListViewMenu_SelectionChanged" BorderThickness="0" Background="#3b3c40" Grid.Row="1" Foreground="White" >
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
</ListView.ItemContainerStyle>
<ListViewItem x:Name="ItemProducts" Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_BoxOpen" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Productos" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem x:Name="ItemClients" Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_User" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Clientes" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem x:Name="ItemSales" Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_CartPlus" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Ventas" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem x:Name="ItemImports" Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_PlaneArrival" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Encargos" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem x:Name="ItemStats" Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_ChartPie" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Estadísticas" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
</ListView>
</Grid>
<!--The Content Layout-->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition MaxHeight="70px" Height="*"/>
<RowDefinition Height="5*"/>
</Grid.RowDefinitions>
<!--TopBar-->
<Grid Grid.Row="0" Background="#3b3c40">
<!--Hamburguer Button-->
<Button Click="ToggleMenu" Background="White" Padding="8,8,8,8" Width="40px" Height="40px" Margin="10,5,5,5" HorizontalAlignment="Left">
<fa5:SvgAwesome Foreground="Black" Margin="0,0,0,0" Width="20px" Icon="Solid_Bars" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Button>
<!--Logo title-->
<TextBlock HorizontalAlignment="Center" Foreground="White" VerticalAlignment="Center" FontSize="22">Sistema Informático</TextBlock>
<!--Notification Image Button-->
<extToolkit:DropDownButton FlowDirection="RightToLeft" Background="White" Width="50px" Height="40px" Padding="8,8,8,8" Margin="5,5,70,5" HorizontalAlignment="Right" >
<fa5:SvgAwesome Foreground="Black" Margin="0,0,0,0" Width="20px" Icon="Solid_Bell" VerticalAlignment="Center" HorizontalAlignment="Center" />
<extToolkit:DropDownButton.DropDownContent>
<ListView FlowDirection="RightToLeft" ScrollViewer.HorizontalScrollBarVisibility="Disabled" BorderThickness="0" Background="#3b3c40" Foreground="White" >
<ListViewItem Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_ExclamationCircle" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Notificacion 1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_ExclamationCircle" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Notification 2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_ArrowsAlt" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Ver más" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
</ListView>
</extToolkit:DropDownButton.DropDownContent>
</extToolkit:DropDownButton>
<!--Account Image Button-->
<extToolkit:DropDownButton FlowDirection="RightToLeft" Background="White" Width="50px" Height="40px" Padding="8,8,8,8" Margin="5,5,10,5" HorizontalAlignment="Right" >
<fa5:SvgAwesome Foreground="Black" Margin="0,0,0,0" Width="20px" Icon="Solid_User" VerticalAlignment="Center" HorizontalAlignment="Center" />
<extToolkit:DropDownButton.DropDownContent>
<ListView FlowDirection="RightToLeft" ScrollViewer.HorizontalScrollBarVisibility="Disabled" BorderThickness="0" Background="#3b3c40" Foreground="White" >
<ListViewItem Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_UsersCog" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Configuración" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<ListViewItem Height="60">
<StackPanel Orientation="Horizontal">
<fa5:SvgAwesome Foreground="white" Margin="10,0,0,0" Width="20px" Icon="Solid_SignOutAlt" VerticalAlignment="Center" HorizontalAlignment="Center" />
<TextBlock Text="Cerrar Sesión" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
</ListView>
</extToolkit:DropDownButton.DropDownContent>
</extToolkit:DropDownButton>
</Grid>
<!--Main Content-->
<Border Grid.Row="1" Background="LightGray">
<Grid Name="ContentMain" Grid.Row="1" Margin="20,20,20,0" Background="White">
</Grid>
</Border>
</Grid>
</Grid>
</Window>