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

How to use rowstyleselector but still base on global style template...

0 Answers 60 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.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 07 Jun 2012, 07:11 AM

<Style x:Key="xxxTreeListViewStyle" TargetType="telerik:TreeListViewRow"
   
BasedOn="{StaticResource RowGlobalStyle}">
   
<Setter Property="Background" Value="#FFFFE1C4" />
</Style>

but for silverlight

<Style TargetType="telerik:GridViewRow">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template" Value="{StaticResource GridViewRowTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Foreground" Value="{StaticResource text}"/>
    </Style>
    
I am not sure how to call the style that do not have key in it for baseon value.

However, if i added theme into style  it will not update properly during real time binding. e.g text disappear etc.
This might be a bug.

But if I use styleselector without setting theme in selector style the text will not disappear.
So If I will not set theme on the styleselector, where it will pick the theme from? So I can avoid text disappearing issue.

Please help us on silverlight issue.
Tags
GridView
Asked by
Ifdev02
Top achievements
Rank 1
Share this question
or