Xceed DataGrid for WPF v7.2 Documentation
IsContentBindingAlive Property


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > StatCell Class : IsContentBindingAlive Property
Gets a value indicating whether the StatCell's Content property is currently the target of a binding.
Syntax
'Declaration
 
Public ReadOnly Property IsContentBindingAlive As Boolean
'Usage
 
Dim instance As StatCell
Dim value As Boolean
 
value = instance.IsContentBindingAlive
public bool IsContentBindingAlive {get;}

Property Value

true if the StatCell's content is currently bound; false otherwise.
Remarks
This property is useful, for example, when providing a custom ContentTemplate to a StatCell. It allows you to manage the binding within the ContentTemplate of the Content property of the StatCell based on the state of the property so that the performance of the grid is similar to what is obtained when using the default StatCell ContentTemplate. Thus, for example, while a StatCell is out of view, this property will be set to false. To prevent the corresponding StatFunction from being calculated, the custom StatCell ContentTemplate must be set to null. Once the property is set back to true, this means the StatCell is now in view; it also means that the ContentTemplate must be set to a valid template that has a binding to the Content property of the StatCell, which in turn means the corresponding StatFunction will be calculated, or recalculated, if needed.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StatCell Class
StatCell Members