"Unhandled exception" in telerik code when editing xaml/raddocking

2 posts, 0 answers
  1. Anders
    Anders avatar
    80 posts
    Member since:
    Dec 2010

    Posted 18 Apr 2013 Link to this post

    I get the following exception when I paste from your WPF Controls Examples and reduce the contents of RadPanes (See xaml below).
    Any suggestions for a way forward?

    Anders, Denmark

    Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.PopupHostManagerBase.GetManager(DependencyObject obj) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\PopupWindowHost.cs:line 308
       at Telerik.Windows.Controls.InternalWindow.SinglePopupWindowHost.GetHostManager() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\SinglePopupWindowHost.cs:line 22
       at Telerik.Windows.Controls.InternalWindow.PopupWindowHost.Open(Boolean isModal) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\PopupWindowHost.cs:line 77
       at Telerik.Windows.Controls.WindowBase.ShowWindow(Boolean isModal) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 891
       at Telerik.Windows.Controls.Docking.ToolWindow.Open() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\ToolWindow.cs:line 121
       at Telerik.Windows.Controls.RadDocking.OpenInToolWindow(RadSplitContainer container) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 797
       at Telerik.Windows.Controls.RadDocking.InitializeSplitContainer(RadSplitContainer container) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1325
       at Telerik.Windows.Controls.RadDocking.OnApplyTemplate() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 180
       at System.Windows.FrameworkElement.ApplyTemplate()
       at Microsoft.Expression.Platform.WPF.WpfViewNodeManager.EnsureElementInDictionary(Object root, ViewNode knownAncestor)



    <
    telerik:RadDocking x:Name="radDocking1" 
                        Grid.Row="1" Margin="0 0 0 10"
                        BorderThickness="0"
                        Padding="0" Background="{StaticResource LightGrayBrush}">
     
        <!--DocumentHost-->
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadDocumentPane Title="Description">
                    </telerik:RadDocumentPane>
                    <telerik:RadPane Header="NotDragable" CanFloat="False">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
     
        <telerik:RadSplitContainer  MaxWidth="600" telerik:DockingPanel.InitialSize="210,150"
        Name="LeftContainer" InitialPosition="DockedLeft">
            <telerik:RadPaneGroup x:Name="Group1">
                <!--Server Exproler-->
                <telerik:RadPane x:Name="Pane1" Header="Server Explorer">
                </telerik:RadPane>
     
                <!--Toolbox-->
                <telerik:RadPane x:Name="Pane2" Header="Toolbox">
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
     
        <telerik:RadSplitContainer MaxWidth="679" telerik:DockingPanel.InitialSize="210,150"
        x:Name="RightContainer" InitialPosition="DockedRight">
            <telerik:RadPaneGroup x:Name="Group2">
     
                <!-- Solution Explorer -->
                <telerik:RadPane x:Name="Pane3" Header="Solution Explorer">
                </telerik:RadPane>
     
                <!--Properties-->
                <telerik:RadPane x:Name="Pane4" Header="Properties">
                 </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
     
        <telerik:RadSplitContainer InitialPosition="FloatingDockable"
        telerik:RadDocking.FloatingLocation="450, 250"
        telerik:RadDocking.FloatingSize="300, 220">
            <telerik:RadPaneGroup>
                <telerik:RadPane Header="Not Document Pane" CanDockInDocumentHost="False">
                 </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
     
        <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,180"
        x:Name="BottomContainer" InitialPosition="DockedBottom">
            <telerik:RadPaneGroup x:Name="Group3">
     
                <!-- Output -->
                <telerik:RadPane x:Name="Pane5" Header="Output">
                 </telerik:RadPane>
     
                <!--Error List-->
                <telerik:RadPane x:Name="Pane6" Header="Error List">
                 </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>
  2. Anders
    Anders avatar
    80 posts
    Member since:
    Dec 2010

    Posted 19 Apr 2013 Link to this post

    Update -- removing
    Background
    ="{StaticResource LightGrayBrush}"

    removed the unhandled exception.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top