i have main window for the WPF aplication.
how can i put the radwindow onside the main windows,
so the sub radwindow will be only onside the main window, (detemine RestrictionZone,some thing like MDI)
private void button1_Click(object sender, RoutedEventArgs e)
{
RadWindow t = new RadWindow();
t.Width = 500;t.Height = 300;
t.Show();
}/*
on asp .net telerik i know how to do it, But on WPF i have no idea( need help)
<telerik:RadWindowManager ID="RadWindowManager1" RestrictionZoneID="windowsDataArea" runat="server">
<Windows>
*/
6 Answers, 1 is accepted
You can define restricted area using the RestrictedAreaMargin property of the RadWindow control and you can enable this feature by setting the IsRestricted property of the window control to true.
Hope this helps.
Regards,Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
again i need to build WPF application
i want to make main window that include many sub window ( i do not need Dock);
can you give me example hove to use/defind RestrictedAreaMargin.
what i need to write in the Window.xaml and what i need write on the Window.xaml.cs
i realy do not find any explanation on the online help.
I have these code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
Title="Window1" Height="439" Width="627">
<Grid Name="MYGrid">
<Button Height="23" HorizontalAlignment="Left" Margin="0,40,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Button</Button>
[what to write here];
</Grid>
</Window>
code behind:
private void button1_Click(object sender, RoutedEventArgs e)
{
RadWindow t = new RadWindow();
t.Width = 300;
t.Height = 300;
t.Show();
// t.Owner = Thickness_;
t.IsRestricted = true;
t.RestrictedAreaMargin = [what to write here];
}
I answered you one the other forum thread you posted: http://www.telerik.com/community/forums/wpf/window/mdi-for-rad-windows.aspx.
All the best,Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
but i donot have answer.
please make it easy for me.
on the neterik asp i now hove to define "RestrictedAreaMargin" but i didnot see any example who to do it on WPF application.
thank
.
You can find a sample of how to use the RestrictedAreaMargin property of RadWindow in the following example from our online XAML SDK repository:
https://github.com/telerik/xaml-sdk/tree/master/Window/RestrictedToParent
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.