This question is locked. New answers and comments are not allowed.
Abhishek Gairola
Top achievements
Rank 1
Abhishek Gairola
asked on 19 Aug 2010, 03:51 PM
How can I change the style of a details presenter?
I want background to be white
and fond to be black
Thank you!
I want background to be white
and fond to be black
Thank you!
8 Answers, 1 is accepted
0
Hello Abhishek Gairola,
Have you tried using the RowDetailsStyle property?
Regards,
Ross
the Telerik team
Have you tried using the RowDetailsStyle property?
Regards,
Ross
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
0
Abhishek Gairola
Top achievements
Rank 1
answered on 19 Aug 2010, 03:56 PM
Can you please give me a smaple
Something like
But I am not sure if it will work
Something like
<ResourceDictionary xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" > <Style x:Key="RowDetails" TargetType="telerikGrid:RowDetails"> <Setter Property="Background" Value="White" /> <Setter Property="Foreground" Value="Black" /> </Style> </ResourceDictionary> But I am not sure if it will work
0
Hi Abhishek Gairola,
Please, take a look at this.
Best wishes,
Ross
the Telerik team
Please, take a look at this.
Best wishes,
Ross
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
0
Abhishek Gairola
Top achievements
Rank 1
answered on 19 Aug 2010, 04:06 PM
Yeah I saw this but currently I do not have Blend on my machine
only VS2008 :(
only VS2008 :(
0
Accepted
Hi Abhishek Gairola,
Simply write this:
I hope this helps.
Best wishes,
Ross
the Telerik team
Simply write this:
<Style x:Key="RowDetailsStyle" TargetType="telerik:DetailsPresenter"> <Setter Property="Background" Value="White" /> <Setter Property="Foreground" Value="Black" /> </Style>
and then in the grid set the RowDetailsStyle={StaticResource RowDetailsStyle}
That's it. I hope this helps.
Best wishes,
Ross
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
0
Abhishek Gairola
Top achievements
Rank 1
answered on 19 Aug 2010, 04:15 PM
Thank you very much Ross
I will try this
I will try this
0
Abhishek Gairola
Top achievements
Rank 1
answered on 19 Aug 2010, 04:58 PM
Just one more question
what is the namespace for telerik in your code?
what is the namespace for telerik in your code?
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
gives me an error that DetailsPresenter was not found
Thank you!0
Hello,
All the best,
Vlad
the Telerik team
You can use our Uri namespace:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
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
