feat: WPF控件-9-GroupBox

This commit is contained in:
Bunny 2025-01-07 23:02:41 +08:00
parent 49a9bb8aab
commit 883c3e5cd0
7 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<Application x:Class="WPF控件_9_GroupBox.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WPF控件_9_GroupBox"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

View File

@ -0,0 +1,12 @@
using System.Configuration;
using System.Data;
using System.Windows;
namespace WPF控件_9_GroupBox;
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

View File

@ -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)
)]

View File

@ -0,0 +1,18 @@
<Window x:Class="WPF控件_9_GroupBox.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"
xmlns:local="clr-namespace:WPF控件_9_GroupBox"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<GroupBox Header="盒子组" Padding="5" Margin="5" VerticalAlignment="Top">
<StackPanel>
<RadioButton Margin="3">One </RadioButton>
<RadioButton Margin="3">Two</RadioButton>
<RadioButton Margin="3">Three</RadioButton>
<RadioButton GroupName="New">Four</RadioButton>
<Button Margin="3">保存</Button>
</StackPanel>
</GroupBox>
</Window>

View File

@ -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控件_9_GroupBox;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}

View File

@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>WPF控件_9_GroupBox</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>

View File

@ -16,6 +16,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-7-Popup", "WPF控
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-8-ScrollViewer", "WPF控件-8-ScrollViewer\WPF控件-8-ScrollViewer.csproj", "{84E26482-499C-412E-B43E-931BD0C0E983}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-9-GroupBox", "WPF控件-9-GroupBox\WPF控件-9-GroupBox.csproj", "{04404109-C5C1-44EF-9D1D-224D082DB36B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -54,5 +56,9 @@ Global
{84E26482-499C-412E-B43E-931BD0C0E983}.Debug|Any CPU.Build.0 = Debug|Any CPU
{84E26482-499C-412E-B43E-931BD0C0E983}.Release|Any CPU.ActiveCfg = Release|Any CPU
{84E26482-499C-412E-B43E-931BD0C0E983}.Release|Any CPU.Build.0 = Release|Any CPU
{04404109-C5C1-44EF-9D1D-224D082DB36B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{04404109-C5C1-44EF-9D1D-224D082DB36B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{04404109-C5C1-44EF-9D1D-224D082DB36B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{04404109-C5C1-44EF-9D1D-224D082DB36B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal