From a7d18f56e9d537d5ff93b452dd3b14036dcfa08a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann <m@nuth.ch> Date: Thu, 21 Mar 2024 23:24:29 +0100 Subject: [PATCH] Initialize new WPF application --- Tasks/UrlTester/DT3/App.xaml | 9 +++++++++ Tasks/UrlTester/DT3/App.xaml.cs | 12 ++++++++++++ Tasks/UrlTester/DT3/AssemblyInfo.cs | 10 ++++++++++ Tasks/UrlTester/DT3/MainWindow.xaml | 12 ++++++++++++ Tasks/UrlTester/DT3/MainWindow.xaml.cs | 23 +++++++++++++++++++++++ Tasks/UrlTester/UrlTester.csproj | 5 +++-- 6 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 Tasks/UrlTester/DT3/App.xaml create mode 100644 Tasks/UrlTester/DT3/App.xaml.cs create mode 100644 Tasks/UrlTester/DT3/AssemblyInfo.cs create mode 100644 Tasks/UrlTester/DT3/MainWindow.xaml create mode 100644 Tasks/UrlTester/DT3/MainWindow.xaml.cs diff --git a/Tasks/UrlTester/DT3/App.xaml b/Tasks/UrlTester/DT3/App.xaml new file mode 100644 index 0000000..6467a90 --- /dev/null +++ b/Tasks/UrlTester/DT3/App.xaml @@ -0,0 +1,9 @@ +<Application x:Class="lel.App" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:lel" + StartupUri="MainWindow.xaml"> + <Application.Resources> + + </Application.Resources> +</Application> diff --git a/Tasks/UrlTester/DT3/App.xaml.cs b/Tasks/UrlTester/DT3/App.xaml.cs new file mode 100644 index 0000000..2a6d31d --- /dev/null +++ b/Tasks/UrlTester/DT3/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace UrlTester; + +/// <summary> +/// Interaction logic for App.xaml +/// </summary> +public partial class App : Application +{ +} diff --git a/Tasks/UrlTester/DT3/AssemblyInfo.cs b/Tasks/UrlTester/DT3/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /dev/null +++ b/Tasks/UrlTester/DT3/AssemblyInfo.cs @@ -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) +)] diff --git a/Tasks/UrlTester/DT3/MainWindow.xaml b/Tasks/UrlTester/DT3/MainWindow.xaml new file mode 100644 index 0000000..28f8c41 --- /dev/null +++ b/Tasks/UrlTester/DT3/MainWindow.xaml @@ -0,0 +1,12 @@ +<Window x:Class="lel.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:lel" + mc:Ignorable="d" + Title="MainWindow" Height="450" Width="800"> + <Grid> + + </Grid> +</Window> diff --git a/Tasks/UrlTester/DT3/MainWindow.xaml.cs b/Tasks/UrlTester/DT3/MainWindow.xaml.cs new file mode 100644 index 0000000..4c8fd49 --- /dev/null +++ b/Tasks/UrlTester/DT3/MainWindow.xaml.cs @@ -0,0 +1,23 @@ +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; + +namespace lel; + +/// <summary> +/// Interaction logic for MainWindow.xaml +/// </summary> +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Tasks/UrlTester/UrlTester.csproj b/Tasks/UrlTester/UrlTester.csproj index 9e7e345..deca785 100644 --- a/Tasks/UrlTester/UrlTester.csproj +++ b/Tasks/UrlTester/UrlTester.csproj @@ -1,10 +1,11 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <OutputType>Exe</OutputType> - <TargetFramework>net8.0</TargetFramework> + <OutputType>WinExe</OutputType> + <TargetFramework>net8.0-windows</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>disable</Nullable> + <UseWPF>true</UseWPF> </PropertyGroup> <ItemGroup>