'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 )
This method sets the requested properties on the 'appearance' argument to the values used while rendering the control's main UIElement.
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()); } }
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