using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinStatusBar;
private void button4_Click(object sender, System.EventArgs e)
{
	AppearanceData appData;
	AppearancePropFlags requestedProps;
	UltraStatusPanel panel;
	// ------------------------------------------------
	// Resolve the appearance of a status bar panel.
	// ------------------------------------------------
	// Get the first panel
	panel = this.ultraStatusBar1.Panels[0];
	// Initialize the appearance data structure		
	appData = new AppearanceData();
	// Specify which appearance properties we want to resolve.
	// In this case just the backcolor and forecolor.
	requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
	// Call either the panel's 'ResolveAppearance' method
	// or the control's 'ResolvePanelAppearance' method to
	// resolve the appearance of this panel (this may be
	// different that the appearance of the status bar
	// control which is resolved below).
	//this.ultraStatusBar1.ResolvePanelAppearance( panel, ref appData, ref requestedProps );
	panel.ResolveAppearance( ref appData, ref requestedProps );
	
	// Note: The reason that the 'requestedProps' parameter
	// is also passed in by reference is that as each requested
	// property is resolved its bit is stripped out of the
	// passed in parameter. On return from the call the only
	// bits remaining in 'requestedProps' will be those 
	// properties which were not resolved. Normally,
	// 'requestedProps' has no bits set after the call returns.
	// Write out the resolved colors
	Debug.WriteLine("BackColor: " + appData.BackColor.ToString() + ", ForeColor: " + appData.ForeColor.ToString() );
	// ------------------------------------------------
	// Resolve the appearance of the status bar control
	// ------------------------------------------------
	// Re-initialize the appearance data structure 
	appData = new AppearanceData();
	
	// Specify which appearance properties we want to resolve.
	// In this case we want all 'Render' properties. This
	// includes every property but the 'Cursor' property.
	requestedProps = AppearancePropFlags.AllRender;
	// Call the control's 'ResolveAppearance' method
	// to resolve the appearance of the status bar 
	// control.
	this.ultraStatusBar1.ResolveAppearance( ref appData, ref requestedProps );
	// Write out the resolved gradient related properties.
	Debug.WriteLine("BackGradientStyle: " + appData.BackGradientStyle.ToString() + ", BackColor: " + appData.BackColor.ToString() + ", BackColor2: " + appData.BackColor2.ToString() );
}