Hi Telerik,
I have a problem on using RadWindow. Because its content is loaded on demand so I want it can re-size automatically.
This below code make the radwindow cant maximize when I click Maximize button.
Hope your help!
I have a problem on using RadWindow. Because its content is loaded on demand so I want it can re-size automatically.
This below code make the radwindow cant maximize when I click Maximize button.
Hope your help!
MinHeight="100" MaxHeight="{Binding WindowHeight, Mode=TwoWay}"
SizeChanged="OnSizeChanged"
private
void
OnSizeChanged(
object
sender, SizeChangedEventArgs e)
{
Size appSize = Application.Current.RootVisual.RenderSize;
Left = Math.Round((appSize.Width / 2) - (ActualWidth / 2), 0);
Top = Math.Round((appSize.Height / 2) - (ActualHeight / 2), 0);
}