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

[Solved] Style Error in Blend

2 Answers 109 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.
Heather
Top achievements
Rank 1
Heather asked on 13 Oct 2009, 01:33 PM
I have the following style defined in a resource dictionary:

 

<Style x:Key="PrimaryDataListGridStyle" TargetType="telerikGridView:RadGridView"> 

 

<Setter Property="BorderBrush" Value="{StaticResource AreaBorderBrush}"/> 
<Setter Property="Background" Value="Transparent"/> 
<Setter Property="MultipleSelect" Value="False"/> 
<Setter Property="DataLoadMode" Value="Asynchronous"/> 
<Setter Property="UseAlternateRowStyle" Value="True"/> 
<Setter Property="ColumnsWidthMode" Value="Fill"/> 
</Style>

 

 

 

 

When I apply the style to a gridview in a usercontrol it works in Visual Studio but I get the following errors in Blend when I open the usercontrol or resourcedictionary:
The member "BorderBrush" is not recognized or is not accessible, same for Background.  My resource dictionary contains other control styles and this error just started when I added the gridview style.  What am I doing wrong?

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin Milanov
Telerik team
answered on 16 Oct 2009, 01:51 PM
Hi Heather,

Attached I am sending you a sample app which applies Background and BorderBrush via style.

Sincerely yours,
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
Heather
Top achievements
Rank 1
answered on 16 Oct 2009, 02:22 PM
I should have specified that I was working with the 1006 internal build.  I just backed my dlls to the 0925 internal build and my error messages went away. 

Another note, with the 1006 internal build I was starting to get a stack trace error every time I opened a usercontrol with a radgridview on it with "value does not fall in the expected range" and then blend would crash.  Will stay at 0925 until another build comes out and then try that one.
Tags
GridView
Asked by
Heather
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Heather
Top achievements
Rank 1
Share this question
or