简体   繁体   English

如何制作类似于Visual C#2008属性窗口的东西?

[英]How to make something similar to Visual C# 2008 properties window?

What interests me is everything below the bar with buttons that determine how the properties are displayed. 我感兴趣的是条形下方的所有内容,其中的按钮决定了属性的显示方式。 All I can figure out is there is a splitter and a status strip. 我能想到的只有一个分离器和一个状态条。

What I'm after is how there are 2 sections which I want to add the titles Property and Value, the sections can be resized with a splitter (I assume a splitter is used in this case), each property can be selected and the corresponding description appears on the status strip, and each value can either be text or a dropdown box. 我所追求的是如何有2个部分我想添加标题属性和值,这些部分可以用分割器调整大小(我假设在这种情况下使用分割器),每个属性都可以选择和相应的说明显示在状态栏上,每个值可以是文本或下拉框。

The coding part I can probably do by myself, what I need to know is what controls the window is made up of and how it's put together. 编码部分我可以自己做,我需要知道的是控制窗口是由什么组成的,以及它是如何组合在一起的。

You are referring to the PropertyGrid control. 您指的是PropertyGrid控件。 It's in the ToolBox. 它在ToolBox中。

See Getting the Most Out of the .NET Framework PropertyGrid Control 请参阅充分利用.NET Framework PropertyGrid控件

This is the PropertyGrid , and can be used directly. 这是PropertyGrid ,可以直接使用。 There is no need to reinvent the wheel here... 这里没有必要重新发明轮子......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Visual C#Express 2008制作图表? - How can I make a chart with visual c# express 2008? 如何在C#中使用类似LinkPoke的东西? - How to use something similar of LinkPoke in C#? 如何创建类似于 nameof() c# 的东西 - How to create something similar to nameof() c# JavaScript 中是否有类似于 C# 区域的东西? 视觉工作室 2017 - Is there something similar to C# regions in JavaScript? Visual Studio 2017 如何让程序在 C# 中创建数据库或类似于保存文件的东西 - How to make a program create a database or something similar as a save file in c# 如何在Visual Studio 2008中使用C#为其他窗口创建工作区窗口? - How do I create a workspace window for other windows using c# in visual studio 2008? 如何使用WPF在Visual C#2008中获得自定义应用程序名称和启动窗口名称? - How do I get a custom application name and starting window name in Visual C# 2008 using WPF? 如何在Visual Studio 2008中使VB.NET和C#的语法突出显示和键盘行为相同? - How to make make syntax highlighting and keyboard behavior identical for VB.NET and C# in Visual Studio 2008? 与C#中的UBound相似 - Something similar to UBound in C# 有没有类似于 C# 中的 singletonList 的东西 - Is there something similar to singletonList in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM