Initial commit
This commit is contained in:
10
Apollon.WPF/Apollon.WPF.csproj
Normal file
10
Apollon.WPF/Apollon.WPF.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
12
Apollon.WPF/App.xaml
Normal file
12
Apollon.WPF/App.xaml
Normal file
@@ -0,0 +1,12 @@
|
||||
<Application x:Class="Apollon.WPF.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Apollon.WPF">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="Themes/ButtonTheme.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
24
Apollon.WPF/App.xaml.cs
Normal file
24
Apollon.WPF/App.xaml.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Apollon.WPF
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
MainWindow = new MainWindow();
|
||||
MainWindow.Show();
|
||||
|
||||
base.OnStartup(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Apollon.WPF/AssemblyInfo.cs
Normal file
10
Apollon.WPF/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
Apollon.WPF/Images/Scheibe.png
Normal file
BIN
Apollon.WPF/Images/Scheibe.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
72
Apollon.WPF/MainWindow.xaml
Normal file
72
Apollon.WPF/MainWindow.xaml
Normal file
@@ -0,0 +1,72 @@
|
||||
<Window x:Class="Apollon.WPF.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:Apollon.WPF" xmlns:views="clr-namespace:Apollon.WPF.Views"
|
||||
mc:Ignorable="d"
|
||||
Title="Apollon Auswertung Bogen"
|
||||
Height="800"
|
||||
Width="1120"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Background="Transparent"
|
||||
AllowsTransparency="True"
|
||||
WindowStyle="None"
|
||||
MouseDown="Window_MouseDown">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35">
|
||||
|
||||
</RowDefinition>
|
||||
<RowDefinition>
|
||||
|
||||
</RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<views:ApollonOverviewView Grid.RowSpan="2"/>
|
||||
<Button Width="25"
|
||||
Height="25"
|
||||
Padding="-4"
|
||||
Background="Transparent"
|
||||
BorderBrush="Transparent"
|
||||
Content="🗙"
|
||||
FontSize="20"
|
||||
Foreground="SlateGray"
|
||||
VerticalContentAlignment="Center"
|
||||
HorizontalContentAlignment="Center"
|
||||
HorizontalAlignment="Right" Margin="0,2,24,8"
|
||||
Click="Button_Exit">
|
||||
|
||||
</Button>
|
||||
<Button Width="25"
|
||||
Height="25"
|
||||
Padding="-4"
|
||||
BorderBrush="Transparent"
|
||||
Content="☐"
|
||||
FontSize="20"
|
||||
FontWeight="UltraBold"
|
||||
Foreground="SlateGray"
|
||||
VerticalContentAlignment="Center"
|
||||
HorizontalContentAlignment="Center"
|
||||
HorizontalAlignment="Right" Margin="0,2,64,8"
|
||||
Click="Button_Max" Background="#00000000"
|
||||
|
||||
/>
|
||||
|
||||
<Button Width="25"
|
||||
Height="25"
|
||||
Padding="-4"
|
||||
Background="Transparent"
|
||||
BorderBrush="Transparent"
|
||||
Content="🗕"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Foreground="SlateGray"
|
||||
VerticalContentAlignment="Center"
|
||||
HorizontalContentAlignment="Center"
|
||||
HorizontalAlignment="Right" Margin="0,2,104,8"
|
||||
Click="Button_Min"
|
||||
></Button>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
60
Apollon.WPF/MainWindow.xaml.cs
Normal file
60
Apollon.WPF/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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;
|
||||
|
||||
namespace Apollon.WPF
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (e.LeftButton == MouseButtonState.Pressed)
|
||||
{
|
||||
DragMove();
|
||||
}
|
||||
}
|
||||
|
||||
private void Button_Exit(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Button_Max(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
if (this.WindowState == WindowState.Maximized)
|
||||
|
||||
{
|
||||
this.WindowState = WindowState.Normal;
|
||||
}
|
||||
else
|
||||
|
||||
this.WindowState = WindowState.Maximized;
|
||||
|
||||
}
|
||||
|
||||
private void Button_Min(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.WindowState = WindowState.Minimized;
|
||||
}
|
||||
}
|
||||
}
|
||||
34
Apollon.WPF/Themes/ButtonTheme.xaml
Normal file
34
Apollon.WPF/Themes/ButtonTheme.xaml
Normal file
@@ -0,0 +1,34 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style TargetType="{x:Type Button}"
|
||||
x:Key="ModernButton">
|
||||
<Setter Property="Foreground" Value="#0000a0"/>
|
||||
<Setter Property="FontFamily" Value="Arial"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
|
||||
<Setter Property="Background" Value="#808080"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10"
|
||||
BorderThickness="2"
|
||||
BorderBrush="#0000a0">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
|
||||
</Border>
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#ff8000"/>
|
||||
<Setter Property="Opacity" Value="0.8"/>
|
||||
<Setter Property="Foreground" Value="#0000a0"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
19
Apollon.WPF/ViewModels/BaseViewModel.cs
Normal file
19
Apollon.WPF/ViewModels/BaseViewModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.WPF.ViewModels
|
||||
{
|
||||
public class BaseViewModel : INotifyPropertyChanged
|
||||
{
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
|
||||
protected void OnPrpertyChanged(string properyName)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(properyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
80
Apollon.WPF/Views/ApollonOverviewView.xaml
Normal file
80
Apollon.WPF/Views/ApollonOverviewView.xaml
Normal file
@@ -0,0 +1,80 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.ApollonOverviewView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views" xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="800" d:DesignWidth="1120"
|
||||
Background="Transparent">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="150"></RowDefinition>
|
||||
<RowDefinition></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
<ColumnDefinition></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border CornerRadius="20" Grid.RowSpan="2" Grid.ColumnSpan="3">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
||||
<GradientStop Color="#d7e8fd" Offset="0.2"/>
|
||||
<GradientStop Color="#81a9e2" Offset="0.8"/>
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<StackPanel Grid.ColumnSpan="3">
|
||||
<TextBlock
|
||||
Text="Apollon"
|
||||
FontSize="50"
|
||||
TextAlignment="Center"
|
||||
Margin="0,35"
|
||||
Foreground="#ff8000"
|
||||
FontFamily="Arial Black">
|
||||
<TextBlock.Effect>
|
||||
<DropShadowEffect Color="#808080"></DropShadowEffect>
|
||||
</TextBlock.Effect>
|
||||
</TextBlock>
|
||||
<TextBlock
|
||||
Margin="-25"
|
||||
Text="Auswertung Bogen"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="18"
|
||||
Foreground="#0000a0">
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
VerticalAlignment="Center">
|
||||
<components:ApollonOverViewListing Height="400"/>
|
||||
<Button Style="{StaticResource ModernButton}"
|
||||
Content="Neues Turnier vorbereiten"
|
||||
FontSize="16"
|
||||
Height="40"
|
||||
Width="210"
|
||||
Margin="40"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
VerticalAlignment="Center">
|
||||
<components:ApollonOverviewDetails/>
|
||||
<Button Style="{StaticResource ModernButton}"
|
||||
Content="Turnier bearbeiten"
|
||||
FontSize="16"
|
||||
Height="40"
|
||||
Width="210"
|
||||
Margin="40"/>
|
||||
</StackPanel>
|
||||
|
||||
<Image Grid.Column="2"
|
||||
Grid.Row="2"
|
||||
Source="D:\Projekte\Apollon\Apollon\Apollon.WPF\Images\Scheibe.png"
|
||||
Width="300"
|
||||
Height="300">
|
||||
</Image>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
Apollon.WPF/Views/ApollonOverviewView.xaml.cs
Normal file
28
Apollon.WPF/Views/ApollonOverviewView.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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;
|
||||
|
||||
namespace Apollon.WPF.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ApollonOverviewView.xaml
|
||||
/// </summary>
|
||||
public partial class ApollonOverviewView : UserControl
|
||||
{
|
||||
public ApollonOverviewView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
17
Apollon.WPF/Views/Components/ApollonOverViewListing.xaml
Normal file
17
Apollon.WPF/Views/Components/ApollonOverViewListing.xaml
Normal file
@@ -0,0 +1,17 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.Components.ApollonOverViewListing"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Border BorderBrush="#0000a0"
|
||||
BorderThickness="1"
|
||||
CornerRadius="10"
|
||||
Width="300">
|
||||
</Border>
|
||||
<ListView Background="Transparent"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
Apollon.WPF/Views/Components/ApollonOverViewListing.xaml.cs
Normal file
28
Apollon.WPF/Views/Components/ApollonOverViewListing.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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;
|
||||
|
||||
namespace Apollon.WPF.Views.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ApollonOverViewListing.xaml
|
||||
/// </summary>
|
||||
public partial class ApollonOverViewListing : UserControl
|
||||
{
|
||||
public ApollonOverViewListing()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
38
Apollon.WPF/Views/Components/ApollonOverviewDetails.xaml
Normal file
38
Apollon.WPF/Views/Components/ApollonOverviewDetails.xaml
Normal file
@@ -0,0 +1,38 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.Components.ApollonOverviewDetails"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Border BorderBrush="#0000a0"
|
||||
BorderThickness="1"
|
||||
CornerRadius="10">
|
||||
</Border>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Tuniername"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="14"
|
||||
Foreground="#0000a0"
|
||||
Margin="40"/>
|
||||
<TextBlock Text="Vom 01.01.2022 bis 03.01.2022"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="14"
|
||||
Foreground="#0000a0"
|
||||
Margin="0,0,0,40"/>
|
||||
<TextBlock Text="Veranstaltungsort"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="14"
|
||||
Foreground="#0000a0"
|
||||
Margin="0,0,0,40"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
Apollon.WPF/Views/Components/ApollonOverviewDetails.xaml.cs
Normal file
28
Apollon.WPF/Views/Components/ApollonOverviewDetails.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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;
|
||||
|
||||
namespace Apollon.WPF.Views.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ApollonOverviewDetails.xaml
|
||||
/// </summary>
|
||||
public partial class ApollonOverviewDetails : UserControl
|
||||
{
|
||||
public ApollonOverviewDetails()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user