Hi,
I have created a custom filter for the UltraMessageBoxManager in order to style the DialogButtons and set the "ShowOutline = false". The problem is that ButtonUIElement doesnt have that property.
Any clue?
#region IUIElementCreationFilter Members public void AfterCreateChildElements(UIElement parent) {
} public bool BeforeCreateChildElements(UIElement parent) { if (parent is MessageBoxUIElement) { Form messagebox_form = ((MessageBoxUIElement)parent).Control.Parent as Form; Point p = new Point(messagebox_form.Owner.Location.X + messagebox_form.Owner.Width / 2 - messagebox_form.Width / 2, messagebox_form.Owner.Location.Y + messagebox_form.Owner.Height / 2 - messagebox_form.Height / 2); messagebox_form.Location = p; } if (parent is ButtonUIElement) {
ButtonUIElement btn = (ButtonUIElement)parent; // here i want to convert ButtonUIElement to UltraButtonBase in order to have access to ShowOutline but the conversion or cast its impossible. } return false; }
Hello,
I am just checking about the progress of this issue. Let me know If you need any further assistance on this matter?
Thank you for using Infragistics Components.