diff --git a/PacticeSolution/AnonymousMethod/AnonymousMethod.csproj b/PacticeSolution/AnonymousMethod/AnonymousMethod.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/PacticeSolution/AnonymousMethod/AnonymousMethod.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/PacticeSolution/AnonymousMethod/Program.cs b/PacticeSolution/AnonymousMethod/Program.cs new file mode 100644 index 0000000..8c31c62 --- /dev/null +++ b/PacticeSolution/AnonymousMethod/Program.cs @@ -0,0 +1,26 @@ +namespace AnonymousMethod +{ + internal class Program + { + private delegate void TestDelegate(); + + static void Main(string[] args) + { + DoTest(); + } + + private static void DoTest() + { + TestDelegate t = delegate() { + Console.WriteLine("Anonymous method by delegate"); + }; + + t += () => + { + Console.WriteLine("Anonymous method by lambda"); + }; + + t(); + } + } +} \ No newline at end of file diff --git a/PacticeSolution/HowToUseStyle/App.xaml b/PacticeSolution/HowToUseStyle/App.xaml new file mode 100644 index 0000000..fb40d25 --- /dev/null +++ b/PacticeSolution/HowToUseStyle/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/HowToUseStyle/App.xaml.cs b/PacticeSolution/HowToUseStyle/App.xaml.cs new file mode 100644 index 0000000..f3fe291 --- /dev/null +++ b/PacticeSolution/HowToUseStyle/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 HowToUseStyle +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/HowToUseStyle/AssemblyInfo.cs b/PacticeSolution/HowToUseStyle/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/HowToUseStyle/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/HowToUseStyle/HowToUseStyle.csproj b/PacticeSolution/HowToUseStyle/HowToUseStyle.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/HowToUseStyle/HowToUseStyle.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/HowToUseStyle/MainWindow.xaml b/PacticeSolution/HowToUseStyle/MainWindow.xaml new file mode 100644 index 0000000..ec0bb2b --- /dev/null +++ b/PacticeSolution/HowToUseStyle/MainWindow.xaml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PacticeSolution/HowToUseStyle/MainWindow.xaml.cs b/PacticeSolution/HowToUseStyle/MainWindow.xaml.cs new file mode 100644 index 0000000..a804084 --- /dev/null +++ b/PacticeSolution/HowToUseStyle/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 HowToUseStyle +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index 0353ea5..e902447 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -93,11 +93,19 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AddressBook_MVVMSampleV2", EndProject 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}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "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}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "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}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PageSample", "PageSample\PageSample.csproj", "{FA1B4A97-2D15-4EDD-BB0F-7E689F203DCD}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnonymousMethod", "AnonymousMethod\AnonymousMethod.csproj", "{9ECA12DE-F55E-4899-8EB4-625719382F4F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TabContorlLightSample", "TabContorlLightSample\TabContorlLightSample.csproj", "{BB27AD88-D070-4095-BB8B-E2049F7DB0EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StaticResourceSample", "StaticResourceSample\StaticResourceSample.csproj", "{6206E9C9-4449-42CC-A0A5-E54C4B15AA53}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HowToUseStyle", "HowToUseStyle\HowToUseStyle.csproj", "{6E182894-D2F1-4D2C-B991-51B01A2E3223}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -297,6 +305,22 @@ Global {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 + {9ECA12DE-F55E-4899-8EB4-625719382F4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9ECA12DE-F55E-4899-8EB4-625719382F4F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9ECA12DE-F55E-4899-8EB4-625719382F4F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9ECA12DE-F55E-4899-8EB4-625719382F4F}.Release|Any CPU.Build.0 = Release|Any CPU + {BB27AD88-D070-4095-BB8B-E2049F7DB0EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB27AD88-D070-4095-BB8B-E2049F7DB0EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB27AD88-D070-4095-BB8B-E2049F7DB0EC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB27AD88-D070-4095-BB8B-E2049F7DB0EC}.Release|Any CPU.Build.0 = Release|Any CPU + {6206E9C9-4449-42CC-A0A5-E54C4B15AA53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6206E9C9-4449-42CC-A0A5-E54C4B15AA53}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6206E9C9-4449-42CC-A0A5-E54C4B15AA53}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6206E9C9-4449-42CC-A0A5-E54C4B15AA53}.Release|Any CPU.Build.0 = Release|Any CPU + {6E182894-D2F1-4D2C-B991-51B01A2E3223}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6E182894-D2F1-4D2C-B991-51B01A2E3223}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6E182894-D2F1-4D2C-B991-51B01A2E3223}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6E182894-D2F1-4D2C-B991-51B01A2E3223}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PacticeSolution/PageSample/MainWindow.xaml b/PacticeSolution/PageSample/MainWindow.xaml index bd4cdce..6d5e26d 100644 --- a/PacticeSolution/PageSample/MainWindow.xaml +++ b/PacticeSolution/PageSample/MainWindow.xaml @@ -24,6 +24,7 @@ Click="btnPage2_Click"/> - + diff --git a/PacticeSolution/StaticResourceSample/App.xaml b/PacticeSolution/StaticResourceSample/App.xaml new file mode 100644 index 0000000..f368eca --- /dev/null +++ b/PacticeSolution/StaticResourceSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/StaticResourceSample/App.xaml.cs b/PacticeSolution/StaticResourceSample/App.xaml.cs new file mode 100644 index 0000000..a2992dd --- /dev/null +++ b/PacticeSolution/StaticResourceSample/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 StaticResourceSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/StaticResourceSample/AssemblyInfo.cs b/PacticeSolution/StaticResourceSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/StaticResourceSample/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/StaticResourceSample/MainWindow.xaml b/PacticeSolution/StaticResourceSample/MainWindow.xaml new file mode 100644 index 0000000..6e544f7 --- /dev/null +++ b/PacticeSolution/StaticResourceSample/MainWindow.xaml @@ -0,0 +1,25 @@ + + + + + + + + + + + + +