This is the XAML code.
<Window x:Class="TestApplication.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:qsf="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart" |
Title="Window1" Height="300" Width="300" |
xmlns:radDock="http://schemas.telerik.com/2008/xaml/presentation"> |
<Grid> |
<radDock:RadDocking> |
<radDock:RadDocking.DocumentHost> |
<radDock:RadSplitContainer> |
<radDock:RadPaneGroup> |
<radDock:RadDocumentPane Title="Description"> |
<radDock:RadDocumentPane.Content> |
<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." /> |
</radDock:RadDocumentPane.Content> |
</radDock:RadDocumentPane> |
<radDock:RadPane Header="NotDragable" CanFloat="False"> |
<radDock:RadPane.Content> |
<TextBlock TextWrapping="Wrap" |
Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." /> |
</radDock:RadPane.Content> |
</radDock:RadPane> |
</radDock:RadPaneGroup> |
</radDock:RadSplitContainer> |
</radDock:RadDocking.DocumentHost> |
</radDock:RadDocking> |
</Grid> |
</Window> |
27 Answers, 1 is accepted
Most probably you don't have reference to the Telerik.Window.QuckStart assembly and you added xml-namespace pointing to it. When I removed the xml-namespace everything worked fine.
All the best,Miroslav Nedyalkov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
FYI: I am running Trial version of Telerik controls for WPF, to evaluate them for the project I am working on.
Could you please to remove this line from the XAML:
xmlns:qsf="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart"
If this doesn't help, please open a support ticket and send us a project in which we could observe the problem. If you could send us additional information like which designer are you using - Visual Studio or Blend, which version are you using, etc. this would help us a lot.
Regards,Miroslav Nedyalkov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Windows 7 64 bit, VS 2008 SP1, .NET 3.5 sp1
Any solution?
btw, I cant find the support ticket 279207. hmmm
You cannot see the thread, because it is a support thread, but not a forum thread. Anyway we don't know what causes the problem in the Ujjwall's case yet.
Could you please give us some more details about your error and about your configuration? If you could open a support ticket and send us a project that reproduces the problem, this would be very helpful.
Greetings,Miroslav Nedyalkov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
After that even I clean the project, I still continue to get the error. So after the first build, there are some project settings modified which is causing the error. Is there some project settings that need to be changed to get it to work?....
Anyways, I am using the same configuration as Frederic, except that I am running Windows XP Pro 32 bit.
Hope this helps in finding the cause of the problem.
If the problem was solved for Ljubo by just reinstalling the controls, then it looks like there is some instability in the controls... Unfortunately in the current state the controls are unusable for me. Hoping for some insight from the Teleriks team.
The Demo C# project that was installed with the Telerik WPF Controls, works fine. i.e. the designer continues to work fine even after the project is built. Hope this narrows the problem.
Really hoping that this issue is resolved quickly.
Although we tried tried the project you sent and also tried with other projects on 2 different machines we are still unable to reproduce this issue. I have attached a screenshot with my SL versions. Could you verify that you are using the same versions or send me a screenshot with yours as I believe this can be caused by different version of SL.
Best wishes,
Boyan
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
First comment to the screen shot you sent is that I am trying to build a WPF application not Silverlight.
About the problem I wanted to summarize all the posts here so that we know all the information at one place
Problem:
When this XAML is loaded in Designer I get the error message: 'Could not create an instance of type 'RadDocking''. However when I run this application it runs fine. The problem happens for even the simplest of XAML (see attached snapshot). There is definitely something wrong.
<Window x:Class="TestApplication.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="300" Width="300" |
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"> |
<Grid> |
<radDock:RadDocking Name="radDocking1" /> |
</Grid> |
</Window> |
Other Comments:
1. The problem has happened on multiple PCs and different users (see comments by other forum members in this thread). It is not a one off thing.
2. When you create the project and add a new component, XAML works fine, the problem starts when you build the project.
3. The Demo project shipped with the RadControls for WPF doesn't have this problem. Main difference I observed in the XAML header is reference to 'QuickStart' and 'qsf' tag
4. This issue is not limited to RadDocking. It applies to all the controls.
System Configuration
1. Visual Studio 2008 SP 1 (ver: 9.0.30729.1)
2. MS .NET Framework 3.5 SP 1
3. WPF
4. OS: Windows XP Pro (Other users have seen this issue on Windows 7 as well)
If you still can't figure out what is the problem, I will have to just figure out another product to use. In the current state the controls are unusable.
http://picasaweb.google.com/lh/sredir?uname=ulahoti&target=PHOTO&id=5435932852650545298&aid=5435932779520969617&authkey=Gv1sRgCLjpp8XO9KHIiAE&feat=email
When I use the following XAML the designer in Visual Studio Works properly:
<Window x:Class="TestApplication.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> |
<Grid> |
<telerik:RadButton Height="23" Margin="86,50,118,0" Name="radButton1" VerticalAlignment="Top">Button</telerik:RadButton> |
<telerik:RadDocking Margin="44,95,34,67" Name="radDocking1" /> |
</Grid> |
</Window> |
However when I remove the line with RadButton, I get the error 'Could not create an instance of type 'RadDocking''. The following XAML produces the error message:
<Window x:Class="TestApplication.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="Window1" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> |
<Grid> |
<telerik:RadDocking Margin="44,95,34,67" Name="radDocking1" /> |
</Grid> |
</Window> |
Looks like to me there is some initialization or environmental variables problem. I have reproduced this issue on 3 different PCs.
Thanks,
Jacob
Jacob suggested a work-around that might help - to add a hidden RadButton before the Docking control. Here is the suggested code:
<
Grid
Name
=
"Grid1"
>
<!-- hack: added button to prevent instance error in designer -->
<
telerik:RadButton
Name
=
"radButton1"
Visibility
=
"Hidden"
>.</
telerik:RadButton
>
<
telerik:RadDocking
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Description"
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Incident 1"
CanFloat
=
"False"
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Incident 2"
CanFloat
=
"False"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>
</
Grid
>
Miroslav Nedyalkov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
However I would like to know the cause of the problem. As has been mentioned earlier in this thread, you couldn't reproduce this problem on some PCs and now this problem is reproducible. By comparing the two systems can we figure out what is the difference. From my point of view the problem is very basic.
Further this issue is not limited to RadDocking, as some other member posted on this thread, he observed the problem with RadPane as well. So would like to know would this work around is required every time or ... Essentially just want to understand the problem better. For now I guess I will use the workaround. Thanks,
Of course we will continue investigating the issues, but at this time we don't know what causes this problem and even cannot reproduce it at our side - anyway we would be able to figure out what the problem is and hopefully to fix it.
We will continue investigating the issues and let you know as soon as we have a solution or at least explanation.
Sincerely yours,Miroslav Nedyalkov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
I hate doing a work around every where.
Unfortunately we don't have a solution yet.
Greetings,Miroslav Nedyalkov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
Could you please give us some more information about your project? I guess you use WPF 3.5 version of our controls. I built a sample project using these assemblies (2010.3.1110.35) and everything worked fine. Could you please try to reproduce the problem in a sample project and send it to us? It would be very helpful in further investigation and pinpointing the issue.
I will be glad to assist you further.
George
the Telerik team
I have sent you a sample project that shows the problem
Ticket ID is: 395466
Best regards,
Russell
I am facing the same problem. I used the above XAML now it is not giving the error but I am not able to Dock the floating windows. Nothing happens at run-time. I do not even see the Panes. :(
Is there any solution for this? below is my XAML:
<
UserControl
x:Class
=
"Intellisys.UserControl2"
Height
=
"820.096"
Width
=
"1419"
Loaded
=
"UserControl_Loaded"
GotFocus
=
"UserControl_GotFocus"
AllowDrop
=
"True"
Background
=
"DimGray"
SizeChanged
=
"UserControl_SizeChanged"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Grid
Name
=
"Gr_Old"
>
<
telerik:RadButton
Visibility
=
"Hidden"
>.</
telerik:RadButton
>
<
telerik:RadDocking
Name
=
"raddocking1"
>
<
telerik:RadSplitContainer
Name
=
"rs1"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Pane1"
Height
=
"300"
Width
=
"300"
x:Name
=
"Pane1"
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Pane2"
Height
=
"300"
Width
=
"300"
x:Name
=
"Pane2"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>
</
UserControl
>
Are you able to Dock windows now? If yes, please reply how you have resolved the issue. I am trying to dock the two floating windows but still I am not able to do it.
Warm regards,
Swati.