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

what is the use of generic.xaml file in creating themes

1 Answer 198 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kumar p
Top achievements
Rank 1
kumar p asked on 11 Jun 2010, 01:29 PM
hi,
if you take  the below example  which uses generic.xaml file.but no where in the  class library project we  have defined an generic.xaml file .so  why do we  then uses  this line  which points  to generic.xaml file.



Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Theme( Uri( "/Telerik.Windows.Themes.CustomTheme;component/Themes/Generic.xaml", UriKind.Relative ) );

 This is really confusing  i have an resource directory  file  with name Telerik.Windows.Controls.GridView.xaml
 so here  should i be  using Generic.xaml  or Telerik.Windows.Controls.GridView.xaml

http://www.telerik.com/help/silverlight/common-styling-apperance-setting-theme.html#Create_a_New_Theme_Project_and_Add_Styles_for_Controls_You_Want_to_Style

http://www.telerik.com/help/silverlight/common-styling-and-appearance-creating-custom-theme.html#Advanced


(i have Telerik.Windows.Controls.GridView.xaml  file)
 in that  file i have specifed  key as

<

 

 

telerik:Office_BlueTheme x:Key="Theme" />
is it  correct or am i doing anything wrong .

 

i am not clear with  this line what actuall  it means

 

The control assembly name is determined by using the DefaultStyleKey property, so if you are changing the DefaultStyleKey, you need to adjust the XAML file name.

plz help me  out.looking frwd for an solution
thanks
P Kumar

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Jun 2010, 06:40 AM
Hello,

 You can find more info here.

Kind regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
kumar p
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or