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

SL3 VS-2008 Designer Error

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 02 Jul 2009, 05:01 PM
SL3 Beta - Visual Studio SP1

I created a new solution and added the following to my Main.xaml page:

<UserControl xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"   
    x:Class="TestDesigner.MainPage" 
    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"
        <telerikNavigation:RadMenu> 
            <telerikNavigation:RadMenuItem Header="Hello There"/> 
        </telerikNavigation:RadMenu> 
    </Grid> 
</UserControl> 

I am unable to 'preview' this or work with the design surface.  I imagine I haven't set something up correctly but i'll be darned if I can figure it out.

The project runs just fine, I just can't use the designer surface. 

Even though my solution builds OK I am receiving the error:
Error 1 AG_E_UNKNOWN_ERROR [Line: 16 Position: 42] E:\Documents and Settings\jmonkey\My Documents\Visual Studio 2008\Projects\TestDesigner\TestDesigner\MainPage.xaml 8 4 TestDesigner

Any thoughts on how I can track this down further?

2 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 07 Jul 2009, 01:41 PM
Hi Jim,

Design time is not supported in Silverlight 3 and this is the reason that you don't see it. Microsoft are having some problems with the Design time but they promised it will be available in VS 2010.

I was unable to reproduce the error as your Xaml worked fine on my side. Are you getting the error just after you have ran the project or at some other point? I am asking because this error sometimes shows out of nowhere and after building it disappears or sometimes after closing all XAML files and opening them again. And could you specify what version of our controls and Silverlight 3 are you using?

Best wishes,
Boyan
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
Jim
Top achievements
Rank 1
answered on 13 Jul 2009, 07:18 PM
Hi Boyan -

I just installed Silverlight 3 - RTM or whatever the latest is... (2.0.5... ) I noticed the lack of design surface (you can pull it up if you are sneaky)

The error only occured when I tried to 'reload the designer'.  The code otherwise runs and displays fine. I think we can mark this up to VS2008 isn't really ready to support the designer.

Thanks for the help and please consider this issue closed.

Jim -- Infovisa
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jim
Top achievements
Rank 1
Share this question
or