Version

FixedSize Property

Gets/sets the size of the desktop alert windows displayed by this UltraDesktopAlert instance.
Syntax
'Declaration
 
Public Property FixedSize As Size
public Size FixedSize {get; set;}
Remarks

The FixedSize property provides a way for the end developer to specify an explicit size for the desktop alert window. The default value for the property is Size.Empty. A value of zero for the width component implies that the actual width should be automatically calculated. For the 'Office2007' style, a width of 329 pixels is used, which is the width used by the Outlook 2007 New Mail Desktop Alert. For the 'WindowsLiveMessenger' style, the width is determined by measuring the width required to display the caption, caption area image, and close/dropdown buttons. A setting of zero for the height component signifies that the width is determined (by either auto-calculation or an explicit setting), and that width is then used when measuring the caption, text and footer text links to determine the height required to fully display all elements of the desktop alert window.

The minimum allowable size for a desktop alert window is restricted to (32W x 16H).

The actual size of the desktop alert window is returned by the UltraDesktopAlertWindowInfo.Bounds property.

Note: Changing properties of the UltraDesktopAlert component when one or more desktop alert windows are open is not recommended; such changes will not be fully applied for desktop alert windows that are currently open. The HasOpenWindows property should be used to determine whether any desktop alert windows are currently open for this instance before changing property values.

Example
The following code sample demonstrates how to use the FixedSize property to control the size of the desktop alert window:

Imports Infragistics.Win
Imports Infragistics.Win.Misc

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        '  Use a width of zero to indicate that we want to use the
        '  default width, but set the height explicitly to 200 pixels.
        Me.desktopAlert.FixedSize = New Size(0, 200)
    End Sub
using Infragistics.Win;
using Infragistics.Win.Misc;
using System.Diagnostics;

    private void Button1_Click(object sender, EventArgs e)
    {
        //  Use a width of zero to indicate that we want to use the
        //  default width, but set the height explicitly to 200 pixels.
        this.desktopAlert.FixedSize = new Size( 0, 200 );
    }
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