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

HeaderedContentControl header showing at the bottom

1 Answer 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 11 Apr 2012, 02:51 PM
hi
after upgrading to the latest assemblies, the headercontentcontrol header is now showing at the bottom of the control without any styling.
how to fix this?
<telerik:HeaderedContentControl Header="Create Event"
                                Style="{StaticResource DefaultHeaderedContentControlStyle}"
                                HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Visibility="Collapsed"
                                                        telerik:StyleManager.Theme="Windows7">
                            <telerik:RadTreeView x:Name="_eventTempaltes" MinWidth="350" IsDragTooltipEnabled="False" Margin="5 0 0 5"
                                                 HorizontalAlignment="Left"  IsExpandOnSingleClickEnabled="True"
                                                 VerticalAlignment="Top" SelectionMode="Single" IsDragDropEnabled="False"
                                                 DataContext="{Binding EventCatelogViewModel, Source={StaticResource Locator}}"
                                                 ItemsSource="{Binding EventCatelogViewModel.EventCatelogs, Source={StaticResource Locator}}"
                                                 ItemTemplate="{StaticResource EventCatelogDataTemplate}" IsTextSearchEnabled="True">
                            </telerik:RadTreeView>
                        </telerik:HeaderedContentControl>

<Style x:Key="DefaultHeaderedContentControlStyle" TargetType="telerik:HeaderedContentControl">
                <Setter Property="BorderThickness" Value="1 0 1 1" />
                <Setter Property="BorderBrush" Value="{StaticResource Pad_BorderBrush}" />
                <Setter Property="Background" Value="{StaticResource Pad_Background}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:HeaderedContentControl">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <Border Grid.Row="0" CornerRadius="4 4 0 0" Padding="10 7"
                                Background="{StaticResource Pad_Header_Background}">
                                    <ContentPresenter Content="{TemplateBinding Header}"
                                    ContentTemplate="{TemplateBinding HeaderTemplate}" />
                                </Border>
                                <Border Grid.Row="1" CornerRadius="0 0 4 4"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}">
                                    <ContentPresenter Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                </Border>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>


Kevin

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 11 Apr 2012, 03:49 PM
figured that out, it's the windows7 theme causing the problem. removing the theme attached property, now it's back to normal.
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Share this question
or