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

Docking Control Eerror

2 Answers 74 Views
Docking
This is a migrated thread and some comments may be shown as answers.
runes
Top achievements
Rank 1
runes asked on 17 Mar 2009, 08:14 AM
Hi,

I am trying to add a docking control to my application, and it throws an exception when the page loads. However, when rebuild the solution, the rebuild all succeeded and the xaml preview is displayed with no problems.

Here is the exception :
Sys.InvalidOperationException: InvalidXaml for control 'Xaml1'.[](line 1,col 1381):AG_E_UNKNOWN_ERROR

Here is the code:

<

UserControl xmlns:my="clr-namespace:Telerik.Windows.Controls.Docking;assembly=Telerik.Windows.Controls.Docking"

 

 

xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"

 

 

x:Class="docking.Page"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

Width="400" Height="300">

 

 

<Grid x:Name="LayoutRoot" Background="White">

 

 

<radDock:RadDocking x:Name="ada" >

 

 

<radDock:RadDocking.DocumentHostContent>

 

 

<radDock:RadSplitContainer>

 

 

<radDock:RadPaneGroup>

 

 

<radDock:RadDocumentPane Title="Description" Content="Some content" />

 

 

</radDock:RadPaneGroup>

 

 

</radDock:RadSplitContainer>

 

 

</radDock:RadDocking.DocumentHostContent>

 

 

<radDock:RadDocking.SplitContainers>

 

 

<radDock:RadSplitContainer Width="150" MaxWidth="600" Name="LeftContainer" InitialPosition="DockedLeft">

 

 

<radDock:RadPaneGroup x:Name="Group1">

 

 

<radDock:RadPane x:Name="Pane1" Header="Server Explorer">

 

 

<Image Source="../../Common/Images/RadDock/ServerExplorer.png"

 

 

Stretch="None" HorizontalAlignment="Left" />

 

 

</radDock:RadPane>

 

 

<radDock:RadPane x:Name="Pane2" Header="Toolbox">

 

 

<Image Source="../../Common/Images/RadDock/Toolbox.png" Stretch="None"

 

 

HorizontalAlignment="Left" />

 

 

</radDock:RadPane>

 

 

</radDock:RadPaneGroup>

 

 

</radDock:RadSplitContainer>

 

 

<radDock:RadSplitContainer Width="200" MaxWidth="679" x:Name="RightContainer" InitialPosition="DockedRight">

 

 

<radDock:RadPaneGroup x:Name="Group2">

 

 

<radDock:RadPane x:Name="Pane3" Header="Solution Explorer">

 

 

<Image Source="../../Common/Images/RadDock/SolutionExplorer.png"

 

 

Stretch="None" />

 

 

</radDock:RadPane>

 

 

<radDock:RadPane x:Name="Pane4" Header="Properties">

 

 

<Image Source="../../Common/Images/RadDock/Properties.png"

 

 

Stretch="None" />

 

 

</radDock:RadPane>

 

 

</radDock:RadPaneGroup>

 

 

</radDock:RadSplitContainer>

 

 

<radDock:RadSplitContainer Height="200" x:Name="BottomContainer" InitialPosition="DockedBottom">

 

 

<radDock:RadPaneGroup x:Name="Group3">

 

 

<radDock:RadPane x:Name="Pane5" Header="Output">

 

 

<Image Source="../../Common/Images/RadDock/Outlook.png" Stretch="None" />

 

 

</radDock:RadPane>

 

 

<radDock:RadPane x:Name="Pane6" Header="Error List">

 

 

<Image Source="../../Common/Images/RadDock/ErrorList.png" Stretch="None" />

 

 

</radDock:RadPane>

 

 

</radDock:RadPaneGroup>

 

 

</radDock:RadSplitContainer>

 

 

</radDock:RadDocking.SplitContainers>

 

 

</radDock:RadDocking>

 

 

 

</Grid>

 

</

UserControl>

 


2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Mar 2009, 08:48 AM
Hello runes,

Have you added all the needed assemblies?
You need all of this: Telerik.Windows.Controls, Telerik.Windows.Controls.Navigation and Telerik.Windows.Controls.Docking?

Waiting for your response.

All the best,
Hristo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
runes
Top achievements
Rank 1
answered on 17 Mar 2009, 10:33 AM
Hi,

I changed the code by removing the <telerikDocking:RadSplitContainer>  in the<radDock:RadDocking.DocumentHostContent> now its work!

Thanks, 
Tags
Docking
Asked by
runes
Top achievements
Rank 1
Answers by
Hristo
Telerik team
runes
Top achievements
Rank 1
Share this question
or