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

Style setting within user control vs. setting in generic.xaml

1 Answer 348 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 28 Oct 2011, 02:12 PM
If we set style via  
<UserControl.Resources>
       <Helpers:RequiredValueStyleSelector x:Key="RequiredFieldStyleSelector" />
       <Style TargetType="telerik:GridViewDataColumn">
           <Setter Property="CellStyleSelector" Value="{StaticResource RequiredFieldStyleSelector}"/>
       </Style>
 </UserControl.Resources>


within our User Control
all is working as expected but if comment this in usercontrol out and put the same code

<Helpers:RequiredValueStyleSelector x:Key="RequiredFieldStyleSelector" />
<Style  TargetType="telerik:GridViewDataColumn">
    <Setter Property="CellStyleSelector" Value="{StaticResource RequiredFieldStyleSelector}"/>
</Style>

 

 into generic.xaml nothing happens

Any suggestions?
PS. in Helper.dll attributes look like

PS. in Helper.dll attributes look like

 

[assembly: ThemeInfo(
    ResourceDictionaryLocation.None,
    ResourceDictionaryLocation.SourceAssembly
    )]

 

 

 

1 Answer, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
answered on 03 Nov 2011, 09:50 AM
Hello Telerik -Team,

I'm not sure where my question belongs so I reposted this question in general forum ( http://www.telerik.com/community/forums/wpf/general-discussions/theme-styles.aspx)

Best regrads,
bob
Tags
GridView
Asked by
Bob
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Share this question
or