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

[Solved] Problem in Blend Designer: not valid XAML

5 Answers 123 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Celeste
Top achievements
Rank 1
Celeste asked on 04 Sep 2009, 01:15 PM
Hi:

I want to change gridview style and I am using Blend to do that.

I have created a gridview in Blend and then I've changed some properties like RowStyle and some other more. I can see the changes in the designer and the project compiles well and when I execute it, it works well.  
The problem is that if I close the project and then I open it, blend doesn´t show anything or it shows me a message:

Se obtuvo una excepcion

Excepcion: XAML no valido (Exception: not valid XAML)
StackTrace: vacio (StackTrace: empty)
Excepcion interna: XAML no valido. 
    Exception: XAML no valido
    StackTrace: vacio
    InnerException: ninguna (none)

It marks a red line in a part of the Xaml, but if I execute it, it works well and I can see the gridview with changes. It's very frustrating because I need to use blend to change the style of radgridview because of gridview's complexity.

I hope you can help me.
Perhaps it's only a bug of Blend.

Thanks.

Celeste.

5 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 04 Sep 2009, 04:25 PM
Celeste,

When I have experienced this, it is usually due to a mismatched in System.Windows.Controls or some other version of the Telerik controls. Make sure you have the correct references based on the version of Telerik DLLs you are using as per their documentation.

S.
0
Celeste
Top achievements
Rank 1
answered on 04 Sep 2009, 04:33 PM
Thanks Scott.
In the past, I've had a problem with dlls System.Window and System.Windows.Controls.Data, but now I am using the last from December.
If I don´t close Blend I can  see my gridview in the designer, it only happens when I re open the project, and also it`s happening now when I want to edit GridViewItemsControl Template.
0
Kalin Milanov
Telerik team
answered on 07 Sep 2009, 06:34 AM
Hello Celeste,

If you are using Silverlight 3 controls then there is no  need to use System.Windows.Controls.Data. In fact you will need to remove it from your references. If not can you please send me a sample so I can investigate this and get back to you?

Regards,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Celeste
Top achievements
Rank 1
answered on 07 Sep 2009, 03:55 PM
I am using Silverlight 2.
I don´t know why it's happening that, but my big problem it's the next:  creating a new project, I edit gridview template. Then in PART_RootItemsControl I choose edit a copy and then it shows me a message with NullReferenceException in Blend's window designer.
I can see the gridview until this point. But then (with this existing code of the GridViewItemsControlTemplate) if I click in the first template (GridViewTemplate) from window Resources, I can see the gridview again.
Do I have to add a dll or something?

Thanks

Celeste.
0
Missing User
answered on 08 Sep 2009, 01:10 PM
Hello Celeste,

Using your directions we were able to reproduce the problem. We will investigate what causes the issue and as soon as it is ready we will make it public via "Latest internal build" program so stay tuned.  I've updated your Telerik points for your involvment.

Kind regards,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Celeste
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Celeste
Top achievements
Rank 1
Kalin Milanov
Telerik team
Missing User
Share this question
or