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

Error when adding Telerik controls inside Window

3 Answers 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
Attila
Top achievements
Rank 1
Attila asked on 26 May 2015, 07:33 AM

Hello, 

Using the latest WPF controls,  I need to add inside a RadWindow, a RadTimePicker or RadDatePicker. 
When I run the application the controls are displayed correctly, but when I try to open the datepicker, I get the attached error.

I`ve added the NoXML dlls and in the App.XAML I`ve added the Windows8Touch theme for each control.
Note that, independently, all controls are working perfectly fine, but in this case I don`t understand what is the problem. Am I missing something ?
Details of the sistem : Windows 8.1 x64

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 26 May 2015, 09:19 AM
Hi Daniel,

Using the provide information we were not able to reproduce the exception on our side. Could you please provide us some additional information or steps to reproduce it? The observed NullReferenceException could be caused by an inappropriate using of RadWindow as MainWindow. If that is the case and you are observing the exception while using RadWindow as main we recommend you to check this article that describes in details how to properly use it - please, check also the attached sample project that demonstrates that.

We're looking forward to hearing from you.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Attila
Top achievements
Rank 1
answered on 26 May 2015, 01:31 PM

Hello Nasko,

 thank you for the answer. We are trying to use RadWindow as user control:

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadWindow>
            <StackPanel>
            <telerik:RadDatePicker></telerik:RadDatePicker>
            </StackPanel>
        </telerik:RadWindow>
        
    </Grid>
</Window>

Regards!

0
Nasko
Telerik team
answered on 26 May 2015, 02:35 PM
Hi Daniel,

Please, check the following article from our help documentation that provides a detailed information step-by-step how to use RadWindow as UserControl:
http://docs.telerik.com/devtools/wpf/controls/radwindow/how-to/use-radwindow-as-user-control

Hopes this helps. 

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
Attila
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Attila
Top achievements
Rank 1
Share this question
or