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

Cannot use a RadWindow as a UserControl inside another RadWindow

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 07 Oct 2010, 08:19 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 12 Oct 2010, 10:40 AM
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
Tags
Window
Asked by
Nitin
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or