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

[Solved] "Invalid XAML" error in GridViewRow

3 Answers 127 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.
Rob
Top achievements
Rank 1
Rob asked on 06 Nov 2009, 02:21 PM
I am trying to modify the default style of a GridViewRow and get an "Invalid XAML" error with this line:

<controls:GridViewToggleButton MinHeight="24" MinWidth="24" IsHitTestVisible="{Binding IsExpandable, RelativeSource={RelativeSource TemplatedParent}}" Opacity="{Binding IsExpandable, Converter={StaticResource BooleanToOpacityConverter}, RelativeSource={RelativeSource TemplatedParent}}" Visibility="{Binding HasHierarchy, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}" Grid.Column="2" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" grid:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"/>  
 

I am using the latest Q3 2009 release...

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 09 Nov 2009, 02:27 PM
Hi,

You will get this error if you are trying to Style the row in Blend. In actuality your project will run however the styling changes will need to be made manually in XAML rather than using the convenience Blend provides.

That being said we are planning on improving significantly our Blend support for the grid and we are hopeful this will happen for a service pack for Q3.

I apologize for the inconvenience caused.

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 19 Nov 2009, 12:38 PM
I am doing the next:
I comment every line where I find: Converter={StaticResource ....} .
Change what I want, and then I remove comment.

So, you have to comment this line:
Opacity
="{Binding IsExpandable, Converter={StaticResource BooleanToOpacityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
0
Vivek Kumar
Top achievements
Rank 1
answered on 20 Nov 2009, 12:06 PM
To Admin,

Please comment whether the above suggested approach is correct.

-Vivek
Tags
GridView
Asked by
Rob
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Celeste
Top achievements
Rank 1
Vivek Kumar
Top achievements
Rank 1
Share this question
or