From 1a15ebc427f836d132ac45744577941f20502e52 Mon Sep 17 00:00:00 2001 From: syneffort Date: Fri, 21 Jul 2023 17:33:54 +0900 Subject: [PATCH] page sample --- PacticeSolution/BindingBasic/App.xaml | 9 ++++ PacticeSolution/BindingBasic/App.xaml.cs | 17 +++++++ PacticeSolution/BindingBasic/AssemblyInfo.cs | 10 +++++ .../BindingBasic/BindingBasic.csproj | 10 +++++ PacticeSolution/BindingBasic/MainWindow.xaml | 13 ++++++ .../BindingBasic/MainWindow.xaml.cs | 28 ++++++++++++ PacticeSolution/PacticeSolution.sln | 20 ++++++++- PacticeSolution/PageSample/App.xaml | 9 ++++ PacticeSolution/PageSample/App.xaml.cs | 17 +++++++ PacticeSolution/PageSample/AssemblyInfo.cs | 10 +++++ PacticeSolution/PageSample/MainWindow.xaml | 29 ++++++++++++ PacticeSolution/PageSample/MainWindow.xaml.cs | 45 +++++++++++++++++++ PacticeSolution/PageSample/PageSample.csproj | 10 +++++ PacticeSolution/PageSample/SubPage/Page1.xaml | 18 ++++++++ .../PageSample/SubPage/Page1.xaml.cs | 28 ++++++++++++ PacticeSolution/PageSample/SubPage/Page2.xaml | 18 ++++++++ .../PageSample/SubPage/Page2.xaml.cs | 28 ++++++++++++ PacticeSolution/StringBuilderTest/Program.cs | 37 +++++++++++++++ .../StringBuilderTest.csproj | 10 +++++ 19 files changed, 365 insertions(+), 1 deletion(-) create mode 100644 PacticeSolution/BindingBasic/App.xaml create mode 100644 PacticeSolution/BindingBasic/App.xaml.cs create mode 100644 PacticeSolution/BindingBasic/AssemblyInfo.cs create mode 100644 PacticeSolution/BindingBasic/BindingBasic.csproj create mode 100644 PacticeSolution/BindingBasic/MainWindow.xaml create mode 100644 PacticeSolution/BindingBasic/MainWindow.xaml.cs create mode 100644 PacticeSolution/PageSample/App.xaml create mode 100644 PacticeSolution/PageSample/App.xaml.cs create mode 100644 PacticeSolution/PageSample/AssemblyInfo.cs create mode 100644 PacticeSolution/PageSample/MainWindow.xaml create mode 100644 PacticeSolution/PageSample/MainWindow.xaml.cs create mode 100644 PacticeSolution/PageSample/PageSample.csproj create mode 100644 PacticeSolution/PageSample/SubPage/Page1.xaml create mode 100644 PacticeSolution/PageSample/SubPage/Page1.xaml.cs create mode 100644 PacticeSolution/PageSample/SubPage/Page2.xaml create mode 100644 PacticeSolution/PageSample/SubPage/Page2.xaml.cs create mode 100644 PacticeSolution/StringBuilderTest/Program.cs create mode 100644 PacticeSolution/StringBuilderTest/StringBuilderTest.csproj diff --git a/PacticeSolution/BindingBasic/App.xaml b/PacticeSolution/BindingBasic/App.xaml new file mode 100644 index 0000000..d1ce9d5 --- /dev/null +++ b/PacticeSolution/BindingBasic/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/BindingBasic/App.xaml.cs b/PacticeSolution/BindingBasic/App.xaml.cs new file mode 100644 index 0000000..7ff180e --- /dev/null +++ b/PacticeSolution/BindingBasic/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 BindingBasic +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/BindingBasic/AssemblyInfo.cs b/PacticeSolution/BindingBasic/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/BindingBasic/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/PacticeSolution/BindingBasic/BindingBasic.csproj b/PacticeSolution/BindingBasic/BindingBasic.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/BindingBasic/BindingBasic.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/BindingBasic/MainWindow.xaml b/PacticeSolution/BindingBasic/MainWindow.xaml new file mode 100644 index 0000000..496d39d --- /dev/null +++ b/PacticeSolution/BindingBasic/MainWindow.xaml @@ -0,0 +1,13 @@ + + + + + diff --git a/PacticeSolution/BindingBasic/MainWindow.xaml.cs b/PacticeSolution/BindingBasic/MainWindow.xaml.cs new file mode 100644 index 0000000..8e403cb --- /dev/null +++ b/PacticeSolution/BindingBasic/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 BindingBasic +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index 52af3b2..0353ea5 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -91,7 +91,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddressBook_MVVMSample", "A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AddressBook_MVVMSampleV2", "AddressBook_MVVMSampleV2\AddressBook_MVVMSampleV2.csproj", "{0CE2A390-5A8B-4F13-9F60-A4AF77F0B1F3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSSQL_MVVM_Sample", "MSSQL_MVVM_Sample\MSSQL_MVVM_Sample.csproj", "{BAAF8254-74D1-406D-9765-43DCA9F939C7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MSSQL_MVVM_Sample", "MSSQL_MVVM_Sample\MSSQL_MVVM_Sample.csproj", "{BAAF8254-74D1-406D-9765-43DCA9F939C7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindingBasic", "BindingBasic\BindingBasic.csproj", "{8A804AD3-0DE0-406A-94ED-25A185875278}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StringBuilderTest", "StringBuilderTest\StringBuilderTest.csproj", "{39BB03B4-BD6D-412A-AEF9-524597AA5673}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PageSample", "PageSample\PageSample.csproj", "{FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -279,6 +285,18 @@ Global {BAAF8254-74D1-406D-9765-43DCA9F939C7}.Debug|Any CPU.Build.0 = Debug|Any CPU {BAAF8254-74D1-406D-9765-43DCA9F939C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {BAAF8254-74D1-406D-9765-43DCA9F939C7}.Release|Any CPU.Build.0 = Release|Any CPU + {8A804AD3-0DE0-406A-94ED-25A185875278}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8A804AD3-0DE0-406A-94ED-25A185875278}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A804AD3-0DE0-406A-94ED-25A185875278}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8A804AD3-0DE0-406A-94ED-25A185875278}.Release|Any CPU.Build.0 = Release|Any CPU + {39BB03B4-BD6D-412A-AEF9-524597AA5673}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {39BB03B4-BD6D-412A-AEF9-524597AA5673}.Debug|Any CPU.Build.0 = Debug|Any CPU + {39BB03B4-BD6D-412A-AEF9-524597AA5673}.Release|Any CPU.ActiveCfg = Release|Any CPU + {39BB03B4-BD6D-412A-AEF9-524597AA5673}.Release|Any CPU.Build.0 = Release|Any CPU + {FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PacticeSolution/PageSample/App.xaml b/PacticeSolution/PageSample/App.xaml new file mode 100644 index 0000000..6de17e4 --- /dev/null +++ b/PacticeSolution/PageSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/PageSample/App.xaml.cs b/PacticeSolution/PageSample/App.xaml.cs new file mode 100644 index 0000000..95c327a --- /dev/null +++ b/PacticeSolution/PageSample/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 PageSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/PageSample/AssemblyInfo.cs b/PacticeSolution/PageSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/PageSample/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/PacticeSolution/PageSample/MainWindow.xaml b/PacticeSolution/PageSample/MainWindow.xaml new file mode 100644 index 0000000..bd4cdce --- /dev/null +++ b/PacticeSolution/PageSample/MainWindow.xaml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + +