diff --git a/PacticeSolution/ComboBoxSample/App.xaml b/PacticeSolution/ComboBoxSample/App.xaml new file mode 100644 index 0000000..b013b56 --- /dev/null +++ b/PacticeSolution/ComboBoxSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/ComboBoxSample/App.xaml.cs b/PacticeSolution/ComboBoxSample/App.xaml.cs new file mode 100644 index 0000000..28ef23e --- /dev/null +++ b/PacticeSolution/ComboBoxSample/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 ComboBoxSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/ComboBoxSample/AssemblyInfo.cs b/PacticeSolution/ComboBoxSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/ComboBoxSample/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/ComboBoxSample/ColorList.cs b/PacticeSolution/ComboBoxSample/ColorList.cs new file mode 100644 index 0000000..40f49e5 --- /dev/null +++ b/PacticeSolution/ComboBoxSample/ColorList.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ComboBoxSample +{ + class ColorList : List + { + public ColorList() + { + InitInstance(); + } + + private void InitInstance() + { + this.Add("Red"); + this.Add("Green"); + this.Add("Blue"); + this.Add("Salmon"); + } + } +} diff --git a/PacticeSolution/ComboBoxSample/ComboBoxSample.csproj b/PacticeSolution/ComboBoxSample/ComboBoxSample.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/ComboBoxSample/ComboBoxSample.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/ComboBoxSample/MainWindow.xaml b/PacticeSolution/ComboBoxSample/MainWindow.xaml new file mode 100644 index 0000000..2f7e0ed --- /dev/null +++ b/PacticeSolution/ComboBoxSample/MainWindow.xaml @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/PacticeSolution/ComboBoxSample/MainWindow.xaml.cs b/PacticeSolution/ComboBoxSample/MainWindow.xaml.cs new file mode 100644 index 0000000..8734a2b --- /dev/null +++ b/PacticeSolution/ComboBoxSample/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 ComboBoxSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index 50fd8f2..96f9496 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -113,6 +113,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DelegateEventFuncAction", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassInitInXaml", "ClassInitInXaml\ClassInitInXaml.csproj", "{4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComboBoxSample", "ComboBoxSample\ComboBoxSample.csproj", "{0A10867D-797C-4477-A584-6CB72B1DE97A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -339,6 +341,10 @@ Global {4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}.Debug|Any CPU.Build.0 = Debug|Any CPU {4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}.Release|Any CPU.ActiveCfg = Release|Any CPU {4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}.Release|Any CPU.Build.0 = Release|Any CPU + {0A10867D-797C-4477-A584-6CB72B1DE97A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0A10867D-797C-4477-A584-6CB72B1DE97A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A10867D-797C-4477-A584-6CB72B1DE97A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0A10867D-797C-4477-A584-6CB72B1DE97A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE