Cannot use a RadWindow as a UserControl inside another RadWindow

2 posts, 1 answers
  1. Nitin
    Nitin avatar
    19 posts
    Member since:
    Jun 2010

    Posted 07 Oct 2010 Link to this post

    Hello,

    I want to use a RadWindow as a user control inside another RadWindow, like as below.

    <

     

     

    telerik:RadWindow x:Class="MacFellow.WPF.ParentRadWindow"

     

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

     

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

     

     

     

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

     

     

     

    mc:Ignorable="d"

     

     

     

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

     

     

     

    d:DesignHeight="300" d:DesignWidth="521">

     

     

     

     

    <Grid>

     

     

     

     

    <telerik:RadWindow Top="10" Left="10" Height="200" Width="300" Visibility="Visible">

     

     

     

     

    <Button x:Name="btnClickMe" Content="Click Me" Width="100"/>

     

     

     

     

    </telerik:RadWindow>

     

     

     

     

    </Grid>

     

    </

     

     

    telerik:RadWindow>

     


    Now when I click on the button "btnClickMe" it throws an exception "Object reference not set to an instance of object".

    Please let me know the reason of the exception and how can it be resolved.
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 12 Oct 2010 Link to this post

    Hello Nitin,

     What you are trying to do is not supported by the RadWindow control - it doesn't support to be placed inside the layout, but only support to be show using its Show or ShowDialog methods.

    Sincerely yours,
    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
Back to Top