return;
}
+ AddedToWindow -= OnAddedToWindow;
+ RemovedFromWindow -= OnRemovedFromWindow;
+
if (type == DisposeTypes.Explicit)
{
if (titleContent != null)
[EditorBrowsable(EditorBrowsableState.Never)]
protected override string AccessibilityGetDescription()
{
- return Message;
+ if (!String.IsNullOrEmpty(Title))
+ {
+ return Message;
+ }
+ else
+ {
+ return "";
+ }
}
/// <summary>
{
base.OnInitialize();
AccessibilityRole = Role.Dialog;
+ }
+
+ private void OnAddedToWindow(object sender, EventArgs e)
+ {
Show(); // calls RegisterDefaultLabel(); Hide() will call UnregisterDefaultLabel()
}
+ private void OnRemovedFromWindow(object sender, EventArgs e)
+ {
+ Hide();
+ }
+
+
/// <summary>
/// Informs AT-SPI bridge about the set of AT-SPI states associated with this object.
/// </summary>
linearLayout.CellPadding = new Size2D(alertDialogStyle.ItemSpacing.Width, alertDialogStyle.ItemSpacing.Height);
}
- this.Relayout += OnRelayout;
+ Relayout += OnRelayout;
+ AddedToWindow += OnAddedToWindow;
+ RemovedFromWindow += OnRemovedFromWindow;
TitleContent = DefaultTitleContent;
{
Layout = new AbsoluteLayout();
- this.Relayout += OnRelayout;
+ Relayout += OnRelayout;
+ AddedToWindow += OnAddedToWindow;
+ RemovedFromWindow += OnRemovedFromWindow;
}
/// <summary>
return;
}
+ AddedToWindow -= OnAddedToWindow;
+ RemovedFromWindow -= OnRemovedFromWindow;
+
if (type == DisposeTypes.Explicit)
{
this.Relayout -= OnRelayout;
{
base.OnInitialize();
AccessibilityRole = Role.Dialog;
+ }
+
+ private void OnAddedToWindow(object sender, EventArgs e)
+ {
Show(); // calls RegisterDefaultLabel(); Hide() will call UnregisterDefaultLabel()
}
+ private void OnRemovedFromWindow(object sender, EventArgs e)
+ {
+ Hide();
+ }
+
/// <summary>
/// Informs AT-SPI bridge about the set of AT-SPI states associated with this object.
/// </summary>