Error when adding Telerik controls inside Window

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 26 May 2015 Link to this post

    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

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 26 May 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 26 May 2015 in reply to Nasko Link to this post

    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!

  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 26 May 2015 Link to this post

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