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


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




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




























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










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





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

















    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
    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
Back to Top