This question is locked. New answers and comments are not allowed.
Hi,
I found strange behavior of RadWindow. Window is restricted to visible area even when IsRestricted is false.
The code is bellow:
xaml file:
cs file:
Steps to reproduce:
Result:
window width is restricted to visible area
Best regards,
Roman Denysenko
I found strange behavior of RadWindow. Window is restricted to visible area even when IsRestricted is false.
The code is bellow:
xaml file:
<
UserControl
x:Class
=
"SilverlightApplication1.MainPage"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Button
Click
=
"ShowWindow"
Content
=
"Show window"
/>
</
Grid
>
</
UserControl
>
cs file:
namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void ShowWindow(object sender, RoutedEventArgs e)
{
var window = new RadWindow
{
IsRestricted = false,
CanMove = false,
Content = "When I looked in the Visual Studio ItemTemplateCache, I could see that the .vstemplate file for the Silverlight UserControl template was missing from the system. Somehow it had been deleted, and I’m 100% sure I didn’t do it. To fix the problem, I had to delete the content of the ItemTemplateCache folder;",
MinWidth = 50,
MinHeight = 50,
IsTopmost = true,
ResizeMode = ResizeMode.CanResize
};
window.ShowDialog();
}
}
}
Steps to reproduce:
- create PopupWindow popup window with width goes beyond visible area
- press button "Show window"
- change Height of RadWindow by dragging bottom the side
Result:
window width is restricted to visible area
Best regards,
Roman Denysenko