Version

ResolveAppearance Method (UltraExplorerBar)

Resolves the control's main Appearance.
Syntax
'Declaration
 
Public Sub ResolveAppearance( _
   ByRef appearance As Infragistics.Win.AppearanceData, _
   ByRef requestedProps As Infragistics.Win.AppearancePropFlags _
) 
public void ResolveAppearance( 
   ref Infragistics.Win.AppearanceData appearance,
   ref Infragistics.Win.AppearancePropFlags requestedProps
)

Parameters

appearance
A reference to the AppearanceData structure to be resolved.
requestedProps
A reference to the bitflags enumeration describing the properties to be resolved.
Remarks

This method sets the requested properties on the 'appearance' argument to the values used while rendering the control's main UIElement.

Example
The following code displays the fully resolved settings for several of the control's appearance properties.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button91_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button91.Click

		' Get the fully resolved appearance for the control and display
		' the settings for backcolor and forecolor and gradient style.
		Dim appearanceData As AppearanceData = New AppearanceData()
		Dim requestedProperties As AppearancePropFlags = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor Or AppearancePropFlags.BackGradientStyle

		Me.ultraExplorerBar1.ResolveAppearance(appearanceData, requestedProperties)
		Debug.WriteLine("The backcolor for the control is '" + appearanceData.BackColor.ToString())
		Debug.WriteLine("The forecolor for the control is '" + appearanceData.ForeColor.ToString())
		Debug.WriteLine("The backcolor gradient style for the control is '" + appearanceData.BackGradientStyle.ToString())

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;

		private void button93_Click(object sender, System.EventArgs e)
		{
			// Get the fully resolved appearance for the control and display
			// the settings for backcolor and forecolor and gradient style.
			AppearanceData		appearanceData		= new AppearanceData();
			AppearancePropFlags	requestedProperties	= AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor | AppearancePropFlags.BackGradientStyle;

			this.ultraExplorerBar1.ResolveAppearance(ref appearanceData, ref requestedProperties);
			Debug.WriteLine("The backcolor for the control is '" + appearanceData.BackColor.ToString());
			Debug.WriteLine("The forecolor for the control is '" + appearanceData.ForeColor.ToString());
			Debug.WriteLine("The backcolor gradient style for the control is '" + appearanceData.BackGradientStyle.ToString());
		}
	}
Requirements

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

See Also