I updated my dlls to Q2 2011 from Q1 2011. My DialogParameters.Opened handler for RadWindow.Prompt/Alert/Confirm doesn't get fired after upgrading.
Also, I previously had a RadWindow.Alert that was passing in a StackPanel with a RadExpander. The RadExpander doesn't resize the window anymore, like it used to...it just expands down below the visible area of my alert window.
Why have all these things stopped working? I upgraded to Q2 from Q1 because of a different bug in the lazy loading of a RadTreeView...but now I guess I need to go back to Q1?
Also, I previously had a RadWindow.Alert that was passing in a StackPanel with a RadExpander. The RadExpander doesn't resize the window anymore, like it used to...it just expands down below the visible area of my alert window.
const string message = "We're sorry, an error has occurred. Please report this to your support representative.";
var errorTextBox = new TextBox
{
IsReadOnly = true,
Text = exception.ToString(),
TextWrapping = TextWrapping.Wrap,
TextAlignment = TextAlignment.Left,
VerticalContentAlignment = VerticalAlignment.Top,
MaxWidth = 360,
Height = 150
};
errorTextBox.MouseDoubleClick += delegate { errorTextBox.SelectAll(); };
var panel = new StackPanel();
panel.Children.Add(new TextBlock { Text = message, Padding = new Thickness(0, 0, 0, 12), TextWrapping = TextWrapping.Wrap });
panel.Children.Add(new RadExpander { Content = errorTextBox, Header = "Details..." });
var dialogParameters = new DialogParameters
{
Owner = owner,
Header = "An error has occurred",
Content = new ContentControl { MaxWidth = 400, MinHeight = 80, Content = panel },
Opened = (sender, e) => ((ContentControl)sender).Focus()
};
RadWindow.Alert(dialogParameters);
Why have all these things stopped working? I upgraded to Q2 from Q1 because of a different bug in the lazy loading of a RadTreeView...but now I guess I need to go back to Q1?