From d28539ea0dd840066c027d9717e898e0bd26435d Mon Sep 17 00:00:00 2001 From: Per Westerlund Date: Fri, 9 Oct 2020 20:39:44 +0200 Subject: [PATCH] Added WPF/C# app --- C#-WPF/.gitignore | 4 ++++ C#-WPF/App.xaml | 9 +++++++++ C#-WPF/App.xaml.cs | 17 +++++++++++++++++ C#-WPF/AssemblyInfo.cs | 10 ++++++++++ C#-WPF/CsWpf.csproj | 9 +++++++++ C#-WPF/CsWpf.sln | 34 ++++++++++++++++++++++++++++++++++ C#-WPF/MainWindow.xaml | 19 +++++++++++++++++++ C#-WPF/MainWindow.xaml.cs | 28 ++++++++++++++++++++++++++++ 8 files changed, 130 insertions(+) create mode 100644 C#-WPF/.gitignore create mode 100644 C#-WPF/App.xaml create mode 100644 C#-WPF/App.xaml.cs create mode 100644 C#-WPF/AssemblyInfo.cs create mode 100644 C#-WPF/CsWpf.csproj create mode 100644 C#-WPF/CsWpf.sln create mode 100644 C#-WPF/MainWindow.xaml create mode 100644 C#-WPF/MainWindow.xaml.cs diff --git a/C#-WPF/.gitignore b/C#-WPF/.gitignore new file mode 100644 index 0000000..547a964 --- /dev/null +++ b/C#-WPF/.gitignore @@ -0,0 +1,4 @@ +bin/ +obj/ +.vs/ +*.user diff --git a/C#-WPF/App.xaml b/C#-WPF/App.xaml new file mode 100644 index 0000000..6b60df9 --- /dev/null +++ b/C#-WPF/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/C#-WPF/App.xaml.cs b/C#-WPF/App.xaml.cs new file mode 100644 index 0000000..e4d23de --- /dev/null +++ b/C#-WPF/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace CsWpf +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/C#-WPF/AssemblyInfo.cs b/C#-WPF/AssemblyInfo.cs new file mode 100644 index 0000000..2211234 --- /dev/null +++ b/C#-WPF/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/C#-WPF/CsWpf.csproj b/C#-WPF/CsWpf.csproj new file mode 100644 index 0000000..407932c --- /dev/null +++ b/C#-WPF/CsWpf.csproj @@ -0,0 +1,9 @@ + + + + WinExe + net5.0-windows + true + + + diff --git a/C#-WPF/CsWpf.sln b/C#-WPF/CsWpf.sln new file mode 100644 index 0000000..82b9ac3 --- /dev/null +++ b/C#-WPF/CsWpf.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26124.0 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsWpf", "CsWpf.csproj", "{FE649B09-83BD-47DA-9600-C1825C1A8F45}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|x64.ActiveCfg = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|x64.Build.0 = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|x86.ActiveCfg = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Debug|x86.Build.0 = Debug|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|Any CPU.Build.0 = Release|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|x64.ActiveCfg = Release|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|x64.Build.0 = Release|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|x86.ActiveCfg = Release|Any CPU + {FE649B09-83BD-47DA-9600-C1825C1A8F45}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/C#-WPF/MainWindow.xaml b/C#-WPF/MainWindow.xaml new file mode 100644 index 0000000..1cbe290 --- /dev/null +++ b/C#-WPF/MainWindow.xaml @@ -0,0 +1,19 @@ + + + + + diff --git a/C#-WPF/MainWindow.xaml.cs b/C#-WPF/MainWindow.xaml.cs new file mode 100644 index 0000000..4901ec7 --- /dev/null +++ b/C#-WPF/MainWindow.xaml.cs @@ -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 CsWpf +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +}