This is a migrated thread and some comments may be shown as answers.

Radwindow WPF MDI

6 Answers 419 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jamal Husien
Top achievements
Rank 1
Jamal Husien asked on 01 Apr 2010, 09:27 AM
hi

 

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

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 01 Apr 2010, 03:24 PM
Hi Jaml,

 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.
0
Jamal Husien
Top achievements
Rank 1
answered on 02 Apr 2010, 11:31 PM
Thanks you

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];
          }



0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2010, 09:35 AM
Hi Jaml,

 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.
0
Jamal Husien
Top achievements
Rank 1
answered on 06 Apr 2010, 11:00 AM
thnaks
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

.
0
tian
Top achievements
Rank 1
answered on 25 Nov 2014, 02:31 AM
Hi Jaml,I had a similar problem,Your question to get an answer yet?
0
Kalin
Telerik team
answered on 27 Nov 2014, 08:59 AM
Hello Ying,

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.

 
Tags
Window
Asked by
Jamal Husien
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jamal Husien
Top achievements
Rank 1
tian
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or