using System;
using System.Collections.Generic;
using System.ComponentModel;
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.Shapes;
using static System.Net.Mime.MediaTypeNames;
namespace 工业视觉检测系统.Views
{/// <summary>/// RecipeUpdateView.xaml 的交互逻辑/// </summary>
public partial class RecipeUpdateView : Window
{
public RecipeUpdateView(){InitializeComponent();
PropertyGrid1.SelectedObject = new TestData();}}
public class TestData
{[Category("参数类型1:几何"),Description("半径")]
public double radius { get; set;}=10;[Category("参数类型1:几何"),Description("宽度")]
public double width { get; set;}=20;[Category("参数类型1:几何"),Description("长度")]
public double length { get; set;}=30;[Category("参数类型2:其他"),Description("颜色")]
public string color { get; set;}="white";[Category("参数类型2:其他"),Description("步长")]
public int stride { get; set;}=5;}}