diff --git a/WPF控件-15-ListBox/App.xaml b/WPF控件-15-ListBox/App.xaml new file mode 100644 index 0000000..9ed227d --- /dev/null +++ b/WPF控件-15-ListBox/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF控件-15-ListBox/App.xaml.cs b/WPF控件-15-ListBox/App.xaml.cs new file mode 100644 index 0000000..9e5c669 --- /dev/null +++ b/WPF控件-15-ListBox/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF控件_15_ListBox; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF控件-15-ListBox/AssemblyInfo.cs b/WPF控件-15-ListBox/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF控件-15-ListBox/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) +)] \ No newline at end of file diff --git a/WPF控件-15-ListBox/MainWindow.xaml b/WPF控件-15-ListBox/MainWindow.xaml new file mode 100644 index 0000000..c921ff7 --- /dev/null +++ b/WPF控件-15-ListBox/MainWindow.xaml @@ -0,0 +1,35 @@ + + + + 绿色1 + + 绿色2 + + 绿色 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WPF控件-15-ListBox/MainWindow.xaml.cs b/WPF控件-15-ListBox/MainWindow.xaml.cs new file mode 100644 index 0000000..c12d99e --- /dev/null +++ b/WPF控件-15-ListBox/MainWindow.xaml.cs @@ -0,0 +1,23 @@ +using System.Text; +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 WPF控件_15_ListBox; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/WPF控件-15-ListBox/WPF控件-15-ListBox.csproj b/WPF控件-15-ListBox/WPF控件-15-ListBox.csproj new file mode 100644 index 0000000..b5f7f15 --- /dev/null +++ b/WPF控件-15-ListBox/WPF控件-15-ListBox.csproj @@ -0,0 +1,18 @@ + + + + WinExe + net8.0-windows + WPF控件_15_ListBox + enable + enable + true + + + + + Always + + + + diff --git a/WPF控件-15-ListBox/public/003540AH4M72.jpg b/WPF控件-15-ListBox/public/003540AH4M72.jpg new file mode 100644 index 0000000..4aa96ac Binary files /dev/null and b/WPF控件-15-ListBox/public/003540AH4M72.jpg differ diff --git a/WPF控件.sln b/WPF控件.sln index d1e2e87..e2cb48c 100644 --- a/WPF控件.sln +++ b/WPF控件.sln @@ -32,6 +32,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-13-TextBox", "WPF EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-14-PasswordBox", "WPF控件-14-PasswordBox\WPF控件-14-PasswordBox.csproj", "{6371FBC1-A24A-4226-8597-357E50442F07}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox", "WPF控件-15-ListBox\WPF控件-15-ListBox.csproj", "{56F8A639-E31D-49E6-BBB7-77F74BBAF66D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -102,5 +104,9 @@ Global {6371FBC1-A24A-4226-8597-357E50442F07}.Debug|Any CPU.Build.0 = Debug|Any CPU {6371FBC1-A24A-4226-8597-357E50442F07}.Release|Any CPU.ActiveCfg = Release|Any CPU {6371FBC1-A24A-4226-8597-357E50442F07}.Release|Any CPU.Build.0 = Release|Any CPU + {56F8A639-E31D-49E6-BBB7-77F74BBAF66D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {56F8A639-E31D-49E6-BBB7-77F74BBAF66D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {56F8A639-E31D-49E6-BBB7-77F74BBAF66D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {56F8A639-E31D-49E6-BBB7-77F74BBAF66D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal