ListView.UseCompatibleStateImageBehavior Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the ListView uses state image behavior that is compatible with the .NET Framework 1.1 or the .NET Framework 2.0.
public:
property bool UseCompatibleStateImageBehavior { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool UseCompatibleStateImageBehavior { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.UseCompatibleStateImageBehavior : bool with get, set
Public Property UseCompatibleStateImageBehavior As Boolean
true
if the state image behavior is compatible with the .NET Framework 1.1; false
if the behavior is compatible with the .NET Framework 2.0. The default is true
.
- Attributes
Changes to the ListView control in the .NET Framework 2.0 enable custom state images to be set to indicate whether an item is checked or unchecked or in an indeterminate state. With the addition of this feature, the .NET Framework 2.0 has different behavior than the .NET Framework 1.1. If you have created applications that depend on the behavior in the .NET Framework 1.1, be sure that the UseCompatibleStateImageBehavior property is set to true
, which is the default value. In order to fully take advantage of custom state images, set UseCompatibleStateImageBehavior to false
.
Note
If you are using the Microsoft Visual Studio 2005 designer, the UseCompatibleStateImageBehavior property will be set to false
.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: