你如何绑定到用户控件的属性?
不隶属于该控件的属性通知接收器。
您还可以定义该控件的属性和方法。
但是如果你想改变自定义控件的属性?
But what if you want to change the property of a custom control?
更新网格控件的属性值,如表格4所示。
Update the attribute values for the grid control as indicated in Table 4.
以灰色文本显示控件的属性。
And by displaying the properties of the control in gray text.
首先,它使获取控件的属性变得容易得多。
First, it makes getting the properties of the controls much easier.
在设计时可以使用对话框编辑器来设置控件的属性。
Properties of controls can be set at design time using the Dialog editor.
附加属性很有用,因为它让父面板可以扩展其中包含的控件的属性集。
Attached properties are useful as they allow a parent panel to extend the property set of a control contained within it.
此外,在设计时可将应用程序设置绑定到窗体或控件的属性。
In addition, application Settings can be bound to a property of a form or control at design time.
指定要与数据源控件绑定的数据绑定控件的属性的DISPID。
Specifies the DISPID of a property on a data-bound control that is to be bound to a data-source control.
还可以编辑控件的属性,如控件的ID或者运行时控件最初是否可见。
You can also edit the properties of a control, such as its ID, or whether it is initially visible at run time.
如果您已经编制了项目,你会得到这一点,下一步就是要改变控件的属性。
If you have compiled the project and you get this, the next step is to change the properties of the control.
您应该只通过拥有控件底层窗口句柄的线程访问(包含Form)控件的属性。
You should only access properties of a control (that includes a Form) from the thread that owns the control's underlying window handle.
应用实例表明,控件的属性类的设计必须考虑其应用的透明性和修改的封装性。
The example shows that the design of control property class must be considered its application transparence and modification seal.
开发中从控件的显示界面、控件的属性、控件的事件和方法等方面进行规划和实现。
The development includes planning and realizing in such aspects of the controls as the displaying interfaces, properties, events and methods.
这就像询问开发人员使用每个控件的属性和方法一样简单,或者会涉及更多一点的内容。
This could be as simple as asking a developer for the properties and methods to use for each control, or it could be a bit more involved.
控件的属性是由编译器接受,导致运行时“不存在”的错误,但在运行时用户好的作品!
Control property is accepted by the compiler, causes a runtime "doesn't exist" error in UserControl - but works fine at runtime!
它与其父控件拥有相同的构成控件,但除非将构成控件的属性特别公开,否则它们将不可用。
It possesses the same constituent controls as its parent control, but the properties of the constituent controls will not be available unless they were specifically exposed.
讨论在可视化图形界面程序设计过程中有关控件的属性类的应用,解决业内人士在类设计方面的疑惑。
Discuss application about control property class for solving that many specialty men have meet puzzles in visual graphic form program design.
在一个表单上可以包含多个基本控件,全面掌握这些控件的属性、事件和方法程序是进行系统开发的基础。
We can include many basic control in a frame. completely grasping property, event and method of these controls is the fundament of working system exploring.
如果您将属性值添加到窗体及其控件的属性表,则VisualStudio会在幕后于一个已编译为非特定程序集的资源文件中维护它们。
As you add property values into the property sheet for the form and its controls, Visual Studio maintains them in a resource file behind the scenes that is compiled into the neutral assembly.
在ASP.NET使用上传控件的第一步:在WebForm里添加这个服务器控件(查看UploadPage/Default.aspx),然后设置控件的属性。
The first step in using it in ASP.NET is to add the server control to a Web form (see UploadPage/Default.aspx) and setting the upload page in the server control's properties.
GetValue需要一个索引对象参数,因为属性可被索引(例如,当我试图获取Listbox控件的Items属性时)。
GetValue requires an indexed object argument because properties can be indexed (for example if I was trying to get an Items property of a listbox control).
默认属性组合框为数据绑定设置控件的主要属性。
The Default attribute combo box sets the primary attribute on the control for data binding.
设置属性是一个改变控件的简便方法。
这样之后,你就可以在其中的控件上,用XAML的“附加属性”语法指定它属于哪一行、哪一列。
You can then use the XAML "Attached Property" syntax on controls contained within the grid to indicate which grid row and column they should be populated within.
图5显示的是目前使用控件状态的控件列表及其存储的属性,供您参考。
Figure 5 shows a list of the controls that currently make use of control state and what properties they store there for your reference.
图5显示的是目前使用控件状态的控件列表及其存储的属性,供您参考。
Figure 5 shows a list of the controls that currently make use of control state and what properties they store there for your reference.
应用推荐