Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
URGENTTT- headerprefix background to be changed
posted

I have created control template for HeaderLabelArea.

[ Followed example FeatureBrowser/XamDataGrid/Themes & Custom Styles - Custom HeaderLabelArea Style]

 

I want to give different background color to HeaderPrefixArea

 

No matter what i do, headerprefix background not changed

  • 9836
    posted

    You can try with the following style:

     <Style TargetType="{x:Type idDP:HeaderPrefixArea}">
           <Setter Property="Visibility" Value="Visible"/>
                  <Setter Property="Template">
                         <Setter.Value>
                               <ControlTemplate TargetType="{x:Type idDP:HeaderPrefixArea}">
                                     <Grid  Background="Red">
                                            <ContentPresenter
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                                      </Grid>
                                </ControlTemplate>
                        </Setter.Value>
           </Setter>
    </Style>

    I hope this helps

    Vlad