Radwindow WPF MDI

7 posts, 0 answers
  1. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 01 Apr 2010 Link to this post

    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>

     


    */

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Apr 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 02 Apr 2010 Link to this post

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



  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Apr 2010 Link to this post

    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.
  6. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 06 Apr 2010 Link to this post

    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

    .
  7. tian
    tian avatar
    2 posts
    Member since:
    May 2014

    Posted 24 Nov 2014 in reply to Jamal Husien Link to this post

    Hi Jaml,I had a similar problem,Your question to get an answer yet?
  8. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 27 Nov 2014 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready