Specifies whether the desktop alert window displays a pin button, which, when clicked by the end user, toggles the value of the
Pinned property.
The following code sample demonstrates how the use the PinButtonVisible property of the UltraDesktopAlertShowWindowInfo class to enable the end user to prevent a desktop alert window from automatically closing.
Imports Infragistics.Win
Imports Infragistics.Win.Misc
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Create a new instance of the UltraDesktopAlertShowWindowInfo class.
Dim showInfo As UltraDesktopAlertShowWindowInfo = New UltraDesktopAlertShowWindowInfo()
' Set the Caption and Text
showInfo.Caption = String.Format("<a>{0}</a>", "Caption")
showInfo.Text = String.Format("<a>{0}</a>", "Text")
' Set the PinButtonVisible to true so the end user can prevent
' the desktop alert window from automatically closing.
showInfo.PinButtonVisible = True
' Call the Show method to display the desktop alert
Me.desktopAlert.Show(showInfo)
End Sub
'Declaration
Public Property PinButtonVisible As Boolean
using Infragistics.Win;
using Infragistics.Win.Misc;
using System.Diagnostics;
private void Button1_Click(object sender, EventArgs e)
{
// Create a new instance of the UltraDesktopAlertShowWindowInfo class.
UltraDesktopAlertShowWindowInfo showInfo = new UltraDesktopAlertShowWindowInfo();
// Set the Caption and Text
showInfo.Caption = string.Format("<a>{0}</a>", "Caption");
showInfo.Text = string.Format("<a>{0}</a>", "Text");
// Set the PinButtonVisible to true so the end user can prevent
// the desktop alert window from automatically closing.
showInfo.PinButtonVisible = true;
// Call the Show method to display the desktop alert
this.desktopAlert.Show(showInfo);
}
'Declaration
Public Property PinButtonVisible As Boolean
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