Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions C#-WPF/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin/
obj/
.vs/
*.user
9 changes: 9 additions & 0 deletions C#-WPF/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="CsWpf.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CsWpf"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions C#-WPF/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
10 changes: 10 additions & 0 deletions C#-WPF/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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)
)]
9 changes: 9 additions & 0 deletions C#-WPF/CsWpf.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>

</Project>
34 changes: 34 additions & 0 deletions C#-WPF/CsWpf.sln
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions C#-WPF/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Window x:Class="CsWpf.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"
mc:Ignorable="d"
Title="MainWindow"
Height="450" Width="800">
<DockPanel LastChildFill="True"
Background="DarkSlateGray">
<TextBlock FontSize="60"
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="Hello World!"
Foreground="DarkSeaGreen"
ToolTip="Hello World (tool tip style)"/>
</DockPanel>
</Window>
28 changes: 28 additions & 0 deletions C#-WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}