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

"Telerik Docking" control use error

3 Answers 203 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Starry
Top achievements
Rank 1
Starry asked on 22 May 2012, 08:45 AM
According to the official document description,  use  "ExpressionBlend"  drag  "RadDocking"   to  "operation panel"  , errors occur .

One , In  VS  IDE:
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
x:Class="TelerikDockingTest.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="White">
<telerikDocking:RadDocking HasDocumentHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<telerikDocking:RadSplitContainer>
<telerikDocking:RadPaneGroup HorizontalAlignment="Stretch">
<telerikDocking:RadPane Header="Pane 1"/>
<telerikDocking:RadPane Header="Pane 2"/>
</telerikDocking:RadPaneGroup>
</telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking>
</Grid>
</UserControl>

The error information is as follows:
错误 23 The tag 'RadSplitContainer' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking'. C:\Users\Administrator\Desktop\Test\TelerikDockingTest\TelerikDockingTest\MainPage.xaml 9 5 TelerikDockingTest

错误 24 The tag 'RadPaneGroup' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking'. C:\Users\Administrator\Desktop\Test\TelerikDockingTest\TelerikDockingTest\MainPage.xaml 10 6 TelerikDockingTest

错误 25 The tag 'RadPane' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking'. C:\Users\Administrator\Desktop\Test\TelerikDockingTest\TelerikDockingTest\MainPage.xaml 11 7 TelerikDockingTest

错误 26 The tag 'RadPane' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking'. C:\Users\Administrator\Desktop\Test\TelerikDockingTest\TelerikDockingTest\MainPage.xaml 12 7 TelerikDockingTest

错误 22 The tag 'RadDocking' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking'. C:\Users\Administrator\Desktop\Test\TelerikDockingTest\TelerikDockingTest\MainPage.xaml 8 4 TelerikDockingTest

Question:

What  mistake ?  Why  such  a  mistake ?  What's    the    solution ?

Thanks  a  lot...

Two , In  ExpressionBlend  IDE: 

Mistakes as shown in figure (attached) :












Information is  as  follows  picture.


3 Answers, 1 is accepted

Sort by
0
Accepted
Lancelot
Top achievements
Rank 1
answered on 23 May 2012, 07:04 PM

Hi Starry,

The problem appears to be in the way your are calling the namespace for the controls. You are referencing "xmlns:telerikDocking=..." instead it should be "xmlns:telerik=..."

This will cause the cascade of errors your are seeing. What I've done below is write some sample code for you to get the RadDock up and running. Take note of the different namespace and how the docking control is called from that namespace.

Here is how you can call for a RadDock control:

<telerik:RadDocking>
</telerik:RadDocking>

From there you can nest the elements you want, such as RadSplitContainer. The code block below demonstrates the different attributes of the elements and you can see how to use those attributes.

<UserControl x:Class="RadDockingExample.MainPage"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
 
    <Grid x:Name="LayoutRoot" Background="White">
 
<!-- Create an instance of the RadDock like this-->
        <telerik:RadDocking Width="300" Height="200">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Description">
                            <TextBlock TextWrapping="Wrap" Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab."/>
                        </telerik:RadPane>
                        <telerik:RadPane Header="NonDraggable" CanFloat="False">
                            <TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'."/>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
<!-- setup your split container on the left -->
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Toolbox"/>
                    <telerik:RadPane Header="Server Explorer"/>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
<!-- setup your split container on the right-->
            <telerik:RadSplitContainer InitialPosition="DockedRight">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Properties"/>
                    <telerik:RadPane Header="Solution Explorer"/>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
<!-- setup a split container on the bottom -->
            <telerik:RadSplitContainer InitialPosition="DockedBottom">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Output"/>
                    <telerik:RadPane Header="Error List"/>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
<!-- close out the control -->
        </telerik:RadDocking>
    </Grid>
</UserControl>


This example should get your on your way to using the RadDock, let me know if this works or not and we'll take it from there.

Good Luck,
Lancelot

0
Starry
Top achievements
Rank 1
answered on 24 May 2012, 01:56 AM
Thaks  a  lot...Lancelot,thank you...

I guess is the version. What I use is Silverlight4, not Silverlight5.
When change Silverlight4 version with the time, the problem would not exist.

 But  RadControls's  official  website  only  Silverlight5  version  of ?

In addition,  want   to   ask    "Rad   Controls   for    silverlight  "   whether   there     are   reports    control  ,   not   chart   Controls.
0
Yana
Telerik team
answered on 24 May 2012, 09:18 AM
Hi Starry,

I've just replied in the other forum thread with the same questions:
http://www.telerik.com/community/forums/silverlight/general-discussions/547440-two-questions.aspx

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Docking
Asked by
Starry
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Starry
Top achievements
Rank 1
Yana
Telerik team
Share this question
or