-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
46 lines (41 loc) · 3.28 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
<Window x:Class="HospitalManagementSystem.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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:HospitalManagementSystem"
mc:Ignorable="d"
Title="Login" Height="760" Width="450"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
Background="{x:Null}" AllowsTransparency="True"
WindowStyle="None" WindowStartupLocation="CenterScreen" >
<materialDesign:Card UniformCornerRadius="15" Background="{DynamicResource MaterialDesignPaper}" Margin="25"
materialDesign:ElevationAssist.Elevation="Dp4">
<materialDesign:DialogHost CloseOnClickAway="True" x:Name="DialogHost">
<StackPanel>
<materialDesign:PopupBox HorizontalAlignment="Right" Margin="0 20 20 0"
PlacementMode="BottomAndAlignRightEdges" StaysOpen="False" Height="25">
<StackPanel Margin="16 10 0 6" Orientation="Horizontal" HorizontalAlignment="Center">
<TextBlock VerticalAlignment="Center" Text="Dark Mode"/>
<ToggleButton Cursor="Hand" ToolTip="Enable Dark Mode" Margin="12 0 8 0"
x:Name="themeToggle" IsChecked="{Binding isDarkTheme}" Click="toggleTheme"/>
<Button x:Name="btn_exit" ToolTip="Close Application" Content="Exit Application"
Click="exitApp"/>
</StackPanel>
</materialDesign:PopupBox>
<TextBlock Margin="0 25 0 5" FontSize="28" FontWeight="Bold" TextAlignment="Center" HorizontalAlignment="Center" Height="109" Width="345"><Run Text="My Hospital "/><LineBreak/><Run Text="Management"/><LineBreak/><Run Text=" system"/></TextBlock>
<TextBlock Margin="0 10 0 5" FontSize="17" FontWeight="SemiBold" HorizontalAlignment="Center" Text="Log-in"/>
<TextBox Margin="0 50 0 0" x:Name="txtUsername" Width="300" FontSize="18" materialDesign:HintAssist.Hint="Enter Username"
BorderThickness="2" BorderBrush="{DynamicResource MaterialDesignDivider}"
Style="{StaticResource MaterialDesignOutlinedTextBox}" />
<PasswordBox Margin="0 20 0 0" x:Name="txtPassword" Width="300" FontSize="18" materialDesign:HintAssist.Hint="Enter Password"
BorderThickness="2" BorderBrush="{DynamicResource MaterialDesignDivider}"
Style="{StaticResource MaterialDesignOutlinedPasswordBox}" />
<Button Margin="0 20 0 0" x:Name="loginBtn" Style="{StaticResource MaterialDesignFlatMidBgButton}"
materialDesign:ElevationAssist.Elevation="Dp0" Height="53" Width="300"
materialDesign:ButtonAssist.CornerRadius="10" FontSize="18" Content="LOG IN" Click="OnLoginBtnClick"/>
</StackPanel>
</materialDesign:DialogHost>
</materialDesign:Card>
</Window>