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

1 posts, 0 answers
  1. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 07 Jun 2012 Link to this post


    <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.
Back to Top