Version

OpacityResolved Property

Returns the resolved value of the Opacity property.
Syntax
'Declaration
 
Public ReadOnly Property OpacityResolved As Single
public float OpacityResolved {get;}
Example
The following code sample demonstrates how the use the "resolved" properties of the UltraDesktopAlert component to maintain a property value cache:

Imports Infragistics.Win
Imports Infragistics.Win.Misc

'   Used to cache resolved property values of the UltraDesktopAlert component.
Public Class DesktopAlertPropertyCache

    '  Member variables
    Public AllowMove As Boolean
    Public AnimationScrollDirectionShow As AnimationScrollDirection
    Public AnimationScrollDirectionAutoClose As AnimationScrollDirection
    Public AnimationSpeed As AnimationSpeed
    Public AnimationStyleShow As AnimationStyle
    Public AnimationStyleAutoClose As AnimationStyle
    Public AutoClose As Boolean
    Public AutoCloseDelay As Integer
    Public ButtonImageSize As Size
    Public ButtonStyle As UIElementButtonStyle
    Public CaptionAreaImageSize As Size
    Public CloseButtonVisible As Boolean
    Public DropDownButtonVisible As Boolean
    Public ImageSize As Size
    Public MainImageAreaBorderColor As Color
    Public MultipleWindowDisplayStyle As MultipleWindowDisplayStyle
    Public Opacity As Single
    Public Style As DesktopAlertStyle

    '  Constructor
    Public Sub New(ByVal desktopAlert As UltraDesktopAlert)

        '  Throw an exception if the 'desktopAlert' parameter is null.
        If desktopAlert Is Nothing Then Throw New ArgumentNullException("desktopAlert")

        '  Set the members of this instance to the corresponding resolved
        '  UltraDesktopAlert property values.
        Me.AllowMove = desktopAlert.AllowMoveResolved
        Me.AllowMove = desktopAlert.AllowMoveResolved
        Me.AnimationScrollDirectionShow = desktopAlert.AnimationScrollDirectionShowResolved
        Me.AnimationScrollDirectionAutoClose = desktopAlert.AnimationScrollDirectionAutoCloseResolved
        Me.AnimationSpeed = desktopAlert.AnimationSpeedResolved
        Me.AnimationStyleShow = desktopAlert.AnimationStyleShowResolved
        Me.AnimationStyleAutoClose = desktopAlert.AnimationStyleAutoCloseResolved
        Me.AutoClose = desktopAlert.AutoCloseResolved
        Me.AutoCloseDelay = desktopAlert.AutoCloseDelayResolved
        Me.ButtonImageSize = desktopAlert.ButtonImageSizeResolved
        Me.ButtonStyle = desktopAlert.ButtonStyleResolved
        Me.CaptionAreaImageSize = desktopAlert.CaptionAreaImageSizeResolved
        Me.CloseButtonVisible = desktopAlert.CloseButtonVisibleResolved
        Me.DropDownButtonVisible = desktopAlert.DropDownButtonVisibleResolved
        Me.ImageSize = desktopAlert.ImageSizeResolved
        Me.MainImageAreaBorderColor = desktopAlert.MainImageAreaBorderColorResolved
        Me.MultipleWindowDisplayStyle = desktopAlert.MultipleWindowDisplayStyleResolved
        Me.Opacity = desktopAlert.OpacityResolved
        Me.Style = desktopAlert.StyleResolved
    End Sub
End Class
using Infragistics.Win;
using Infragistics.Win.Misc;
using System.Diagnostics;

    //  Used to cache resolved property values of the UltraDesktopAlert component.
    public struct DesktopAlertPropertyCache
    {
        //  Member variables
        public bool AllowMove;
        public AnimationScrollDirection AnimationScrollDirectionShow;
        public AnimationScrollDirection AnimationScrollDirectionAutoClose;
        public AnimationSpeed AnimationSpeed;
        public AnimationStyle AnimationStyleShow;
        public AnimationStyle AnimationStyleAutoClose;
        public bool AutoClose;
        public int AutoCloseDelay;
        public Size ButtonImageSize;
        public UIElementButtonStyle ButtonStyle;
        public Size CaptionAreaImageSize;
        public bool CloseButtonVisible;
        public bool DropDownButtonVisible;
        public Size ImageSize;
        public Color MainImageAreaBorderColor;
        public MultipleWindowDisplayStyle MultipleWindowDisplayStyle;			 
        public DesktopAlertStyle Style;
        public float Opacity;

        //  Constructor
        public DesktopAlertPropertyCache( UltraDesktopAlert desktopAlert )
        {
            //  Throw an exception if the 'desktopAlert' parameter is null.
            if ( desktopAlert == null )
                throw new ArgumentNullException( "desktopAlert" );

            //  Set the members of this instance to the corresponding resolved
            //  UltraDesktopAlert property values.
            this.AllowMove = desktopAlert.AllowMoveResolved;
            this.AllowMultipleWindows = desktopAlert.AllowMultipleWindowsResolved;
            this.AnimationScrollDirectionShow = desktopAlert.AnimationScrollDirectionShowResolved;
            this.AnimationScrollDirectionAutoClose = desktopAlert.AnimationScrollDirectionAutoCloseResolved;
            this.AnimationSpeed = desktopAlert.AnimationSpeedResolved;
            this.AnimationStyleShow = desktopAlert.AnimationStyleShowResolved;
            this.AnimationStyleAutoClose = desktopAlert.AnimationStyleAutoCloseResolved;
            this.AutoClose = desktopAlert.AutoCloseResolved;
            this.AutoCloseDelay = desktopAlert.AutoCloseDelayResolved;
            this.ButtonImageSize = desktopAlert.ButtonImageSizeResolved;
            this.ButtonStyle = desktopAlert.ButtonStyleResolved;
            this.CaptionAreaImageSize = desktopAlert.CaptionAreaImageSizeResolved;
            this.CloseButtonVisible = desktopAlert.CloseButtonVisibleResolved;
            this.DropDownButtonVisible = desktopAlert.DropDownButtonVisibleResolved;
            this.ImageSize = desktopAlert.ImageSizeResolved;
            this.MainImageAreaBorderColor = desktopAlert.MainImageAreaBorderColorResolved;
            this.MultipleWindowDisplayStyle = desktopAlert.MultipleWindowDisplayStyleResolved;
            this.Opacity = desktopAlert.OpacityResolved;
            this.Style = desktopAlert.StyleResolved;
        }
    }
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