'Declaration Public ReadOnly Property HeaderClickActionResolved As GroupBoxHeaderClickAction
public GroupBoxHeaderClickAction HeaderClickActionResolved {get;}
If the HeaderClickAction property is set to a non-default value then that value will be returned. If it is set to 'Default' then this property will return 'ToggleExpansion' if the expansion indicator is not displayed, or 'None' if it is displayed. The expansion indicator can be removed by setting ExpansionIndicator to 'None'.
Imports Infragistics.Win.Misc Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Since the resolution of the HeaderClickAction is based on the ExpansionIndicator property, ' set the ExpansionIndicator to all of the possible values to test the default settings for HeaderClickAction. ' Me.UltraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.Near Trace.Assert(Me.UltraExpandableGroupBox1.HeaderClickActionResolved = GroupBoxHeaderClickAction.None) Me.UltraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.Far Trace.Assert(Me.UltraExpandableGroupBox1.HeaderClickActionResolved = GroupBoxHeaderClickAction.None) Me.UltraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.None Trace.Assert(Me.UltraExpandableGroupBox1.HeaderClickActionResolved = GroupBoxHeaderClickAction.ToggleExpansion) End Sub
using Infragistics.Win.Misc; using System.Diagnostics; private void Form1_Load(object sender, System.EventArgs e) { // Since the resolution of the HeaderClickAction is based on the ExpansionIndicator property, // set the ExpansionIndicator to all of the possible values to test the default settings for HeaderClickAction. // this.ultraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.Near; Trace.Assert( this.ultraExpandableGroupBox1.HeaderClickActionResolved == GroupBoxHeaderClickAction.None ); this.ultraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.Far; Trace.Assert( this.ultraExpandableGroupBox1.HeaderClickActionResolved == GroupBoxHeaderClickAction.None ); this.ultraExpandableGroupBox1.ExpansionIndicator = GroupBoxExpansionIndicator.None; Trace.Assert( this.ultraExpandableGroupBox1.HeaderClickActionResolved == GroupBoxHeaderClickAction.ToggleExpansion ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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