Im wanting to use the RadWindow.Confirm control to show lots of text on the screen.
However, showing a lot of information means that the RadWindow will take up the whole screen which hides the buttons required for closing the RadWindow.
To get around this, i added a ScrollViewer with a max height which creates a scrollbar when needed.
This worked perfectly for RadWindow.Alert, but for some reason, the exact same thing is not working for RadWindow.Confirm.
For the alert, i have done the following
var message = new TextBlock { Text = alertMessage, TextWrapping = TextWrapping.Wrap, Width = 400, };var sv = new ScrollViewer{ Content = message, VerticalScrollBarVisibility = ScrollBarVisibility.Auto, MaxHeight = 600, BorderThickness = new Thickness(0)};RadWindow.Alert( new DialogParameters { Header = header, Content = sv, });
For the RadWindow.Confirm, i do the following
var message = new TextBlock{ Text = confirmMessage, TextWrapping = TextWrapping.Wrap, Width = 400,};var sv = new ScrollViewer{ Content = message, VerticalScrollBarVisibility = ScrollBarVisibility.Auto, MaxHeight = 600, BorderThickness = new Thickness(0)};RadWindow.Confirm( new DialogParameters { Header = header, Content = sv, Closed = (s, args) => { if (args.DialogResult.Value) { if (ConfirmMessageEventArgs != null) { ConfirmMessageEventArgs(confirmType, new WindowClosedEventArgs()); } } } });It is exactly the same as the alert window except it uses the Confirm method instead of Alert.
When i run this, the screen always shows up blank with nothing on it.
Is there any way to get the text to show?