First version of log-in window
This commit is contained in:
parent
0202c8288d
commit
a953d23645
25
PrototypWPFHAG.sln
Normal file
25
PrototypWPFHAG.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.13.35825.156
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrototypWPFHAG", "PrototypWPFHAG\PrototypWPFHAG.csproj", "{8E00F1CF-96A3-44B9-A1D9-3D6BA67A79A4}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{8E00F1CF-96A3-44B9-A1D9-3D6BA67A79A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{8E00F1CF-96A3-44B9-A1D9-3D6BA67A79A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{8E00F1CF-96A3-44B9-A1D9-3D6BA67A79A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{8E00F1CF-96A3-44B9-A1D9-3D6BA67A79A4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {686F44A2-99E9-4110-AA2C-695132B674B6}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
17
PrototypWPFHAG/App.xaml
Normal file
17
PrototypWPFHAG/App.xaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<Application x:Class="PrototypWPFHAG.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:PrototypWPFHAG"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
|
||||||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
||||||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
||||||
|
<!-- Theme setting -->
|
||||||
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
13
PrototypWPFHAG/App.xaml.cs
Normal file
13
PrototypWPFHAG/App.xaml.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace PrototypWPFHAG;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
10
PrototypWPFHAG/AssemblyInfo.cs
Normal file
10
PrototypWPFHAG/AssemblyInfo.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly:ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
BIN
PrototypWPFHAG/Images/databaseicon.png
Normal file
BIN
PrototypWPFHAG/Images/databaseicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 522 KiB |
23
PrototypWPFHAG/MainWindow.xaml
Normal file
23
PrototypWPFHAG/MainWindow.xaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<mah:MetroWindow xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" x:Class="PrototypWPFHAG.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:PrototypWPFHAG"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="Prototype"
|
||||||
|
Height="450"
|
||||||
|
Width="800"
|
||||||
|
TitleCharacterCasing="Normal"
|
||||||
|
WindowTitleBrush="Firebrick"
|
||||||
|
Icon="pack://application:,,,/Images/databaseicon.png"
|
||||||
|
ResizeMode="CanResizeWithGrip">
|
||||||
|
<Grid>
|
||||||
|
<Border BorderBrush="Firebrick" BorderThickness="3">
|
||||||
|
</Border>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Width="120" Margin="100" Background="AliceBlue"></TextBlock>
|
||||||
|
<Button Height="25" Width="44" Content="Log in"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</mah:MetroWindow>
|
24
PrototypWPFHAG/MainWindow.xaml.cs
Normal file
24
PrototypWPFHAG/MainWindow.xaml.cs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
using System.Text;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
using MahApps.Metro.Controls;
|
||||||
|
|
||||||
|
namespace PrototypWPFHAG;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : MetroWindow
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
29
PrototypWPFHAG/PrototypWPFHAG.csproj
Normal file
29
PrototypWPFHAG/PrototypWPFHAG.csproj
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="Images\databaseicon.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Images\databaseicon.png">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
|
<PackageReference Include="Npgsql" Version="9.0.3" />
|
||||||
|
<PackageReference Include="PdfPig" Version="0.1.9" />
|
||||||
|
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user